Hi Jan, Yes, you are right but the problem is you are mixing two things - slashes in action names and RESTful urls. If you want to have RESTfull urls take a look on RestfulActionMapper [1] or REST plugin [2]
[1] http://struts.apache.org/development/2.x/docs/restfulactionmapper.html [2] http://struts.apache.org/development/2.x/docs/rest-plugin.html Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/6/26 Jan Peterka <dolezal...@hotmail.com>: > Hi Łukasz, > > version of Struts is 2.3.15 , so includeParams should be none. > I tried it anyway, but it does same thing, it will put variables into URL > also. > >> From: lukaszlen...@apache.org >> Date: Wed, 26 Jun 2013 09:04:27 +0200 >> Subject: Re: redirectAction result - parameter in URL problem >> To: user@struts.apache.org; jan.dole...@intelek.cz >> >> Struts2 version? >> >> There is constant struts.url.includeParams which can be set to all, >> get or none and by default it's set to none (from some 2.3.x or 2.2.x >> version). >> >> So define constant in struts.xml to disable including params from GET >> <constant name="struts.url.includeParams" value="none"/> >> >> >> Regards >> -- >> Łukasz >> + 48 606 323 122 http://www.lenart.org.pl/ >> >> 2013/6/24 Jan Peterka <dolezal...@hotmail.com>: >> > Hello there, >> > im new to the whole mailing lists thing, so if iam doing something wrong, >> > tell me. I am >> > using all configuration via Annotations. >> > >> > Anyway, im starting with struts and im dealing with redirectAction result >> > right now. >> > Problem is, that im using now variable Actions "SlashesInActionNames". >> > Next, im using >> > "defaultStack" interceptor for my classes. >> > >> > via. >> > >> > {code:xml} >> > <constant name="struts.patternMatcher" value="namedVariable"/> >> > <constant name="struts.mapper.alwaysSelectFullNamespace" >> > value="false"/> >> > <constant name="struts.enable.SlashesInActionNames" value="true"/> >> > {code:xml} >> > >> > so i can go to the action like this "localhost/draft/edit/123" >> > >> > {code:java} >> > @Action(value = "edit/{ident}", results = { >> > @Result(name = SUCCESS, type = "redirectAction", params = { >> > "actionName", "index", "namespace", "/home" >> > }) >> > }) >> > public String getDraft() { >> > return SUCCESS; >> > } >> > {code:java} >> > >> > >> > But if i will put there result fe. SUCCESS , what will redirect this >> > result to another action, >> > fe. "index" in namespace "home", i will get >> > localhost/home/index.action?ident=123 >> > >> > In this moment, struts will show error message (because my dev mode is >> > enabled), that >> > it cant set ident variable because of missing setter in home Action.. But >> > i dont need that setter >> > in home action. >> > >> > How to disable redirectAction to pass any variable from parent Action to >> > URL on redirect ??? >> > >> > Thanks, >> > Regards, >> > John >> > >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org