RE: Redirecting to legacy action from struts 2 action ?

2013-09-11 Thread Sachin Mehrotra
The application context inside ur CustomerAction is /myWebApp/customer, that us why it is using this. You can add root app as name space parameter in Result. Sachin Sent from my Windows Phone From: Mohit Gupta Sent: ‎11-‎09-‎2013 08:32 P

Re: Redirecting to legacy action from struts 2 action ?

2013-09-11 Thread Mohit Gupta
Folks, Any help would be appreciated. On Wed, Sep 11, 2013 at 9:43 PM, Mohit Gupta wrote: > Another observation is > > what works > @Result(name = ComposeMessageCrudAction.REDIRECT_TO, location = > "/customerhome.do?custIdId=200", type = "redirect") }) > > > what does not work > @Result(name =

Re: Possible bug in URL validator

2013-09-11 Thread Bruno Klava
https://issues.apache.org/jira/browse/WW-4198 On Tue, Sep 10, 2013 at 5:09 AM, Lukasz Lenart wrote: > 2013/9/5 Bruno Klava : > > Hi folks, > > > > in Struts 2.3.15 the form-close-validate.ftl template was updated to use > > the regex field, but there is no such field in > > com.opensymphony.xwor

Re: Redirecting to legacy action from struts 2 action ?

2013-09-11 Thread Mohit Gupta
Another observation is what works @Result(name = ComposeMessageCrudAction.REDIRECT_TO, location = "/customerhome.do?custIdId=200", type = "redirect") }) what does not work @Result(name = "redirectTo", location = "#parameters.redirectLocation", type = "redirect") }) where value of #parameters.re

Antwort: Redirecting to legacy action from struts 2 action ?

2013-09-11 Thread Christoph Nenning
it should work when you add namespace "/" to paramters: @Result( name = "redirectTo", location = "#parameters.redirectLocation", type = "redirect", params={"namespace", "/"} ) see this wiki page: http://struts.apache.org/development/2.x/docs/redirect-result.html

Redirecting to legacy action from struts 2 action ?

2013-09-11 Thread Mohit Gupta
Hi All, i have struts 2 action named as CustomerAction.java which is under folderHierarchy/actions/customer(customer is namespace here). From one of the method inside this action class, I am redirecting to my legacy action class ResultMapping is :- @Result(name = "redirectTo", location = "#param

Re: Redirecting to legacy action from struts 2 action ?

2013-09-11 Thread Mohit Gupta
params={"namespace", "/"} did not help. Still it adds the customer namespace On Wed, Sep 11, 2013 at 8:40 PM, Christoph Nenning < christoph.nenn...@lex-com.net> wrote: > it should work when you add namespace "/" to paramters: > > @Result( > name = "redirectTo", > location = "#pa

Re: Trouble getting Archetype based project working

2013-09-11 Thread Lukasz Lenart
The README is a bit outdated (please register an issue), you can simple run: mvn archetype:generate -DarchetypeCatalog=http://struts.apache.org/ and select archetype from the list, I'm using it all the time (but with IDEA so I don't have a problems with Maven based projects) Regards -- Łukasz

Trouble getting Archetype based project working

2013-09-11 Thread Christoph Nenning
Dear List, today I had some trouble getting a new project working based on a maven archetype. I must admit that I don't have much maven experience, so some of this may be n00b supidity. I'm posting this anyway in the hope that it helps others. It may be even worth to put parts of this in the