struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <cfor...@kensfoods.com>
Subject Re: [Struts Tip] # 10 Use Struts JSP Tags to create dynamic JavaScripts
Date Tue, 03 Sep 2002 20:46:17 GMT
Duh. (forehead slap)
That'll teach me to not read the whole question
so that I can answer first and save the day.



> Ted Husted said...

>The JavaScript is rendered by the client after the HTML page leaves the
>server and goes over the wire. So, no that can't work.
>
>Whatever properties are needed for a tag should come with a JavaBean
>associated with the tag or from a custom subclass. There are already
>getters and setters for each of these handlers in the BaseHandlerTag. So
>you could override these with a tag of your own to get whatever you need
>from whereever you need.
>
>-Ted.
>
>Ravi Kora wrote:
>
>> My actual intention was to question if we can use dynamic scriplets in
>> Struts tags like the following
>> <html:text name="txt" value="<bean:write> name="itemForm"
>> property="item"/>" onBlur='javascript:doItem(<bean:write>
>> name="itemForm" property="item"/>)'>
>>
>> Will the expression in the Value attribute evaluate at run time like a
>> scriplet expression in JSP?
>>
>>
>> Thanks & Regards,
>> Ravi Kora
>> kora@louisiana.edu
>> 337-739-3434(M)
>>
>
>
>--
>Ted Husted, Husted dot Com, Fairport NY US
>co-Aauthor, Java Web Development with Struts
>Order it today:
>http://husted.com/struts/book.html
>
>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message