Posted by Nicolas De Loof <ni...@cgey.com>.
JSP tags use XML syntax and so they cannot be nested as attribute values
this way. You can use scriptlet notation to define tags attributes at run
time :
<html:hidden property="id" value='<%= myData %> />
So you just have to define a scripting variable to handle your datas
<bean:define id="myData" name="usuario" property="id"/>
<html:hidden property="id" value='<%= myData %> />
I'm not sure, but you can try this too:
<html:hidden property="id">
<bean:write name="usuario" property="id"/>
</html:hidden>
Nico
Hi
I'm using strtus 1.0.2 and Jrun 3.1, and my jsp page look like this:
<html:hidden property="id" value='<bean:write name="usuario"
property="id"/>'/>
and produces this output in the web browser:
<input type="hidden" name="id" value="<bean:write
name="usuario" property="id"/>">
the tag <bean:write../> is not executed, is interpreted as a literal.
How i can execute the tag <bean:write ../> inside the tag <html:hidden
../>??
-------------------------------------------------------
Ferran Parra
ferran_p@mubimedia.com
http://www.mubimedia.com
MUBIMEDIA S.L.
C/ Mallorca, 275, 1r 2a 08008 BCN
Tel: 93 215 21 91 / Fax: 93 215 41 21
-------------------------------------------------------
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>