Cool. It works great now. Thanks Hubert!
-Original Message-
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 05, 2004 9:47 AM
To: Struts Users Mailing List
Subject: RE: Struts Form Beans Question
Messages sent as recently as a few hours ago say you'd run
05, 2004 9:12 AM
> To: Struts Users Mailing List
> Subject: RE: Struts Form Beans Question
>
> When validation fails during the call to /executeSearchResults, Struts
> will
> show the resource specified in the input attribute (".search") using the
> form
> that failed
It works, but only if I use the name attribute on my tag. I
set it to name="searchForm". Although my first part of my form tag is
mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 05, 2004 9:12 AM
To: Struts Users Mailing List
Subject: RE: Struts Form Beans Question
When validation fa
, the searchForm validate() is called.
> When it fails, I need to put the searchForm back into the request so
> that it can return to the /search page. But if that happened, would the
> values be populated because there is the searchForm object in the
> request?
>
> -Origi
: Hubert Rabago [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 05, 2004 8:53 AM
To: Struts Users Mailing List
Subject: Re: Struts Form Beans Question
Yes.
As long as your mappings are correct (and they would be if you're
already
seeing the behavior you described), Struts will preserve the values in
Yes.
As long as your mappings are correct (and they would be if you're already
seeing the behavior you described), Struts will preserve the values in case
of a validation error and allow the user to correct the mistakes.
--- Daniel Kalcevich <[EMAIL PROTECTED]> wrote:
> Is there a way that I can u
Is there a way that I can use "request" scope on an action mapping and
have the submitted form bean be returned in the case of errors? What I
have is a search form that when its submitted, calls the Validator and
the Form Beans validate() method. Can I like set the form bean back
into the request
7 matches
Mail list logo