Serge Bornow wrote:
Hello All,
Thanks for any ideas.
My Action class has a get/set homeid
How can i invoke from JSP to set the value of that variable to a
dynamic value
I'm not quite sure what you're trying to do. If you're just try to set
a property at the time of posting to your action then just use an input
in a form.
If you mean you need to change a value while rendering the JSP than all
you probably need is to define a variable in PageContext
If you're trying to update the state of an action while rendering the
JSP, that doesn't sound very sensible, but you can make a method call
described below.
A suggestion was this:
<s:property value="foo('huh? ')"/>
This is valid code in Struts2. That will get the result of calling the
method foo with parameter "huh? ".
ie. it will call foo(String) not getFoo(String)
OGNL can call methods.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]