Re: Struts 1 - Initialization versus validation

2009-10-03 Thread Paul Benedict
Kevin, Sounds like you want two separate action mappings. You could use to direct your use case. Paul On Mon, Sep 14, 2009 at 3:35 PM, Kevin Hale Boyes wrote: > Yes, I'm using form.reset() to initialize my fields but the problem is > I don't want to initialize > the fields if I'm coming into t

Re: Struts 1 - Initialization versus validation

2009-09-14 Thread Kevin Hale Boyes
Yes, I'm using form.reset() to initialize my fields but the problem is I don't want to initialize the fields if I'm coming into the SetupAction because of a validation error. I've worked around it for now by looking checking ActionErrors errors = (ActionErrors) request.getAttribute(Globals

Re: Struts 1 - Initialization versus validation

2009-09-14 Thread Paweł Wielgus
Hi Kevin, as far as i know form.reset(...) should be used to reset form fields, one good example is checkbox field that needs to be reseted. I don't know if using reset method in order to initialize objects in form. Can You do it with some kind of initialize/prepare method in SetupAction or CrudAct

Struts 1 - Initialization versus validation

2009-09-14 Thread Kevin Hale Boyes
I have a setup action defined: This action is responsible for setting up values in my (dyna) form before getting to the JSP page. I have a second action which is where the JSP will POST to: The idea is that if a validation error occurs then I'll be forwarded back the setup actio