You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Kamholz, Keith (corp-staff) USX" <kk...@moog.com> on 2002/08/02 14:39:08 UTC

RE: prevent of generating validation errors, when using form the first time

I'm not sure if this is frowned upon, but I just have a link straight to my
JSP.  I don't go through an action unless I have to.  Why make the
application do the extra work?

~ Keith
http://www.buffalo.edu/~kkamholz



-----Original Message-----
From: Struts Newsgroup [mailto:struts@basebeans.com]
Sent: Friday, August 02, 2002 12:10 AM
To: struts-user@jakarta.apache.org
Subject: Re: prevent of generating validation errors, when using form
the first time


Subject: Re: prevent of generating validation errors, when using form the
first time
From: "Selvamohan Neethiraj" <se...@erols.com>
 ===
I just got into this mailing list. But, I see this question pop-up many
times and I really did not see this as an issue.

The Action is invoked only when the corresponding HTML form is submitted to
the Controller Servlet.  The first time, when the HTML (or JSP) is displayed
to the user via HTML, I am assuming that you have forwarded from a previous
action. If your previous action had passed the control to the current HTML,
the ActionForm associated with the HTML (or JSP) should never get invoked.

Isn't this correct ?

Thanks,
Selva-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Selvamohan Neethiraj
Senior Software Engineer,
TEOCO, Fairfax, VA 20165
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


"Albrecht Berger" <be...@gmx.ch> wrote in message
news:mailman.1028234821.12117.struts@basebeans.com...
> Hello,
> how can I prevent that errors are generated by my validator when a form
> is displayed the first time ?
>
> Thx berger
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>



--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>