Thank you Gabriel.
It wasn't exactly what I was hoping for, but at least I know that
<s:push> will not work as I expected.
Thanks,
John
Gabriel Belingueres wrote:
Because the textfield name is actually firstName, and because you
don't have a setFirstName(String) method in your action, the parameter
is never set.
Either you have to:
1) write <s:textfield name="formBean.firstName" label="First Name"
size="16" /> without the s:push, or
2) if you are more comfortable writing the form field names without
all the "formBean.", your action needs to implement the ModelDriven
[1] interface. This will automatically push the model (in your case
the formBean) to the top of the stack (before the action) and there is
no need of using the s:push tag in the JSP.
[1] http://struts.apache.org/2.1.2/docs/model-driven-interceptor.html
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]