struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From The_Developer <abhijit.parali...@gmail.com>
Subject Scriplets not working in <html:xyz> tags
Date Mon, 21 Jan 2008 09:12:23 GMT

Hi,

I've been trying to use scriptlets and/or <bean:write> tags inside
<html:select onchange=""> and <html:button onclick=""> tags. However it
seems that in either case the expression is not evaluated at runtime. The
end result is something like this

<html:select  onchange="javascript:update('<bean:write
name='productId'/>)">abc</html:select> and
<html:button  onclick="javascript:update('<bean:write name='productId'/>)"/>

when the I intended the output to be something like

<html:select  onchange="javascript:update('5)">abc</html:select> and
<html:button  onclick="javascript:update('5')"/>

Does anyone know why this is happening or am I making a mistake?

Many Thanks
-- 
View this message in context: http://www.nabble.com/Scriplets-not-working-in-%3Chtml%3Axyz%3E-tags-tp14993571p14993571.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


Mime
View raw message