I need to pass a parameter from JSP to Action class in a struts 2 project.
In the JSp , I have
id=1;
<s:url action= <s:param name="id" value="%{id}" /></s:url>
The ImageAction class has getId and setId method. The id value is set when I
pass the integer directly in JSP, i.e. <s:url action= <s:param name="id"
value="1" /></s:url>
but when I provide value=%{id}, it is not set, what is the correct syntax to
provide in the VALUE?
--
View this message in context:
http://old.nabble.com/How-to-use-%3Cs%3Aparam%3E-tag-tp27117122p27117122.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]