13, 2009 9:34 am
Subject: RE: Validation does not work on redirect result
see value (of destination location) not location
http://struts.apache.org/2.1.6/docs/result-annotation.html
e.g.
@Result(name="success", value="/home.page", type=TilesResult.class)
is the d
e. Étant donné que les email peuvent
facilement20
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité
pour le contenu fourni.
> To: user@struts.apache.org
> Subject: Re: Validation does not work on redirect result
> Date: Thu, 13 Aug 2009 08:18:56 -0400
>
nt facilement
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité
pour le contenu fourni.
> To: user@struts.apache.org
> Subject: Re: Validation does not work on redirect result
> Date: Thu, 13 Aug 2009 08:18:56 -0400
> From: musom...@aol.com
>
7;information seulement et
> n'aura pas n'importe quel effet légalement obligatoire. Étant donné que
> les email peuvent facilement être sujets à la manipulation, nous ne
> pouvons accepter aucune responsabilité pour le contenu fourni.
>
>
>
>
>> Date: Wed, 12
effet légalement obligatoire. Étant donné que
> les email peuvent facilement être sujets à la manipulation, nous ne
> pouvons accepter aucune responsabilité pour le contenu fourni.
>
>
>
>
>> Date: Wed, 12 Aug 2009 12:22:24 -0700
>> From: spsarol...@gmail.com
>>
le contenu fourni.
> Date: Wed, 12 Aug 2009 12:22:24 -0700
> From: spsarol...@gmail.com
> To: user@struts.apache.org
> Subject: Re: Validation does not work on redirect result
>
>
> Yep its working wonderfully,
> I shouldn't have made use of ServletRedirectAction
Yep its working wonderfully,
I shouldn't have made use of ServletRedirectAction. Following worked for me
@ParentPackage("base-package")
@Result(name="input",value="/WEB-INF/jsp/user/findUser-success.jsp")
public class FindUserAction extends UserAction implements
ServletRequestAware {
HttpServ
>
> Can you please help me understand what is workflow
> interceptor doing here. I know about workflow interceptor as it is
> responsible for calling validate method on action if action implements
> ValidationAware interface and collecting errors if any
>
>
First thing you do is take a look at the
You are going to want to define at least the 2 results 'success' and 'input'
for FindUserAction.
The 'input' result should not be a redirect, it should be to a jsp (or
Freemarker, or velocity, etc).
Here is an example from my app using struts.xml configuration:
/struts/UserList.jsp
thanks i missed that
But i am not able to understand statement
Here is my FindUser.action
@ParentPackage("base-package")
public class FindUserAction extends UserAction implements
ServletRequestAware {
HttpServletRequest request;
public void setServletRequest(HttpServletRequest httpServle
No result defined for action org.xinus.actions.user.FindUserAction and
> result input at
>
>From the write up at:
http://glindholm.wordpress.com/2008/07/02/preserving-messages-across-a-redirect-in-struts-2/
The one thing you need to be aware of is: The action you are redirecting
towards will need
Thanks for replying
when I used that interceptor it is giving me some weird results. Here are
the things sequentially happend
I restarted the jetty server using mvn clean jetty:run
Went to form and submited without entering any values
It redirected me back to form page without printing any messa
Why do you think validation is not working?
Is it because you are not seeing error messages?
Error messages are not normally preserved across a redirect, if you would
like them to be you can add an interceptor to do this.
See if this helps:
http://glindholm.wordpress.com/2008/07/02/preserving-mess
13 matches
Mail list logo