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
> [EMAIL PROTECTED]
> 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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to