Chandan Kulkarni wrote:
>
> Hans,
>
> I should have put more info in my previous mail...
>
> I do have
>
> <attribute>
> <name>inNum</name>
> <required> true </required>
> <rtexprvalue>true</rtexprvalue>
> </attribute>
> defined in the tld file.
>
> I also tried the following
>
> <tlt:twa
> attr1='java.lang.Integer.valueOf(response.getParameter("num")).intValue()'
> type="int" />
Like I said, it's a syntax problem. You're specifying the attribute value
with the syntax of a string literal, not as a request-time attribute.
The syntax for a request-time attribute value is:
<tlt:twa
inNum='<%=
java.lang.Integer.valueOf(response.getParameter("num")).intValue() %>'
/>
Note that the attribute value starts with "<%=" and ends with "%>"; that's
what makes it a request-time value. Without this syntax, the JSP container
doesn't know that the value consists of code that needs to be executed.
Hans
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
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