Re: Validation does not work on redirect result

2009-08-13 Thread musomesa
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

Re: Validation does not work on redirect result

2009-08-13 Thread musomesa
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 >

RE: Validation does not work on redirect result

2009-08-13 Thread Martin Gainty
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 >

Re: Validation does not work on redirect result

2009-08-13 Thread musomesa
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

RE: Validation does not work on redirect result

2009-08-12 Thread spsarolkar
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 >>

RE: Validation does not work on redirect result

2009-08-12 Thread Martin Gainty
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

Re: Validation does not work on redirect result

2009-08-12 Thread spsarolkar
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

Re: Validation does not work on redirect result

2009-08-12 Thread Greg Lindholm
> > 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

Re: Validation does not work on redirect result

2009-08-12 Thread Greg Lindholm
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

Re: Validation does not work on redirect result

2009-08-12 Thread spsarolkar
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

Re: Validation does not work on redirect result

2009-08-12 Thread Greg Lindholm
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

Re: Validation does not work on redirect result

2009-08-12 Thread spsarolkar
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

Re: Validation does not work on redirect result

2009-08-12 Thread Greg Lindholm
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