Well, the taglib-examples that comes with JRun implements this functionality and the
taglib XML looks like mine. Also, the Jsp engine complains and "says" to me to set the
request time....attribute. So I'm just confused ...........
KR
Anders
----- Original Message -----
From: "Peter Pilgrim" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 22, 2001 6:24 PM
Subject: Re: Problems - setting attributes in taglib directives
> Well it look perfectly fine to me.
>
> The taglib XML looks correct
>
> The setter method looks correct . (There is no obvious spellcheck bug !)
>
> Maybe the JSP Engine does not implement <rtexprvalue>..</rtexprvalue>
> correctly. I think that TOMCAT 3.2.1 can't handle this. So I gave up
> with REQUEST_TIME_VALUE attributes and used good all <% ... %>
> to do the setting.
>
> Check your JSP Container documentation
> --
> Peter Pilgrim
> G.O.A.T
> "the Greatest Of All Time"
>
>
>
> ---------------------------------------- Message History
>----------------------------------------
>
>
> From: Anders Lindell <[EMAIL PROTECTED]>@java.sun.com> on 22/02/2001 17:06 CET
>
> Please respond to A mailing list about Java Server Pages specification and
> reference <[EMAIL PROTECTED]>
>
> DELEGATED - Sent by: A mailing list about Java Server Pages specification and
> [EMAIL PROTECTED]>
>
>
> To: [EMAIL PROTECTED]
> cc:
> Subject: Problems - setting attributes in taglib directives
>
>
> Hi!
>
> I'm facing a problem when setting <attribute>...</attribute> in the taglib
>directives file. My tld-file looks like this;
> -------------
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
>"http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
>
> <taglib>
>
> <tlibversion>1.0</tlibversion>
> <jspversion>1.1</jspversion>
> <shortname>taglib1</shortname>
> <info>some simple tags</info>
>
> <tag>
> <name>getFieldInRow</name>
> <tagclass>tagLib1.GetFieldInRow</tagclass>
> <bodycontent>empty</bodycontent>
>
> <attribute>
> <name>preText</name>
> <required>false</required>
> <rtexprvalue>false</rtexprvalue>
> </attribute>
> <attribute>
> <name>postText</name>
> <required>false</required>
> <rtexprvalue>false</rtexprvalue>
> </attribute>
> <attribute>
> <name>row</name>
> <required>true</required>
> <rtexprvalue>true</rtexprvalue>
> </attribute>
> <attribute>
> <name>col</name>
> <required>true</required>
> <rtexprvalue>false</rtexprvalue>
> </attribute>
> </tag>
>
> </taglib>
> -------------
> In my "tag-class" it looks like this;
> -------------
> private String preText = "";
>
> public void setPreText(String str) {
> preText = str;
> }
>
> and so on with the other setters...
> --------------
> --<CUT>--
>
>
>
> --
>
> This e-mail may contain confidential and/or privileged information. If you are not
>the intended recipient (or have received this e-mail in error) please notify the
>sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or
>distribution of the material in this e-mail is strictly forbidden.
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets