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