struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Avinash Gangadharan <agangadha...@ucdavis.edu>
Subject RE: Validation of dynaActionForm too early
Date Thu, 10 Jun 2004 20:08:01 GMT
I have a question that I always thought of for such situations. It is
adviesd to have 2 action mappings as Bill suggests for such situations, one
that sets up the form with validate=false
And the next that handles the form POST. Why is that?.
In my ActionForm I look for a condition which tells me if the form was
posted or not  thereby avoiding two mappings.
But the question still remains.

-----Original Message-----
From: news [mailto:news@sea.gmane.org] On Behalf Of Bill Siggelkow
Sent: Thursday, June 10, 2004 11:00 AM
To: user@struts.apache.org
Subject: Re: Validation of dynaActionForm too early


Set validate="false" on the Action that forwards to the JSP containing 
the form. Set 'validate="true"' and set 'input="/myJsp.jsp"' for the 
action that processes the form.

Tom Ansley wrote:

> Hi all,
> 
> I am trying to use a dynaActionForm.  The problem I am having is that
> when a user requests an action which has a dynaActionForm attached to it 
> the first page the user gets from the action is a page which shows all 
> the errors that the user needs to correct.
> 
> Basically the form is being validated before the user has a chance to
> enter information into the form.
> 
> How do I go about getting it so that the first time the action is 
> called
> the validate() method is not called?
> 
> Cheers
> 
> Tom


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message