struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 928572663 <>
Subject Re: session based pojo as form variables
Date Fri, 19 Sep 2008 19:31:42 GMT
It's still not working - same error.

I tried to revert my JSP back to using the #session.formBean  syntax, 
and now at least I am able to see my default values in the form again.

But when I submit the form with changes,  the framework calls my 
Action's setSession()  function,  but the data values from the form are 
not copied.

Can someone send me a small JSP and Action class (form with 1 field is 
sufficient)  that does actually work?

This sounds like a good idea for a new cookbook page.


Gabriel Belingueres wrote:
> You need to instantiate your formBean before the interceptor stack
> tries to set the parameters. Common points in your code where you can
> accomplish that are: instantiating the object when declared as an
> instance variable, inside a constructor of your action, or implement
> the Preparable interface and create it inside the prepare() method.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message