You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Halil Ağın <ha...@gmail.com> on 2009/09/09 13:59:58 UTC

[struts2] disable parameter pass between actions

Hello List;

I have 2 urls as below

/myapp/myaction1.action?p=3
/myapp/myacction2.action

i reqeust the first action with param as above. when first request completed
i click a button which request second action. but when second action is
requested, the parameter part is also passed to second action. the second
action is requested as /myapp/myacction2.action?p=3, which i dont want. i
dont want parameter passing.

i search the net, but documents shows how parameter passing is done. i
couldnt find any document about disabling parameter passing.

how could i disable paramter passing?.

regards,

-Halil AĞIN

Re: [struts2] disable parameter pass between actions

Posted by Nils-Helge Garli Hegvik <ni...@gmail.com>.
How do you create the url (seeing some code would help...), and which
version of S2? If you're using the url-tag, try setting the
includeParams attribute to "none".

http://struts.apache.org/2.1.6/docs/url.html

Nils-H


2009/9/9 Halil Ağın <ha...@gmail.com>:
> Hello List;
>
> I have 2 urls as below
>
> /myapp/myaction1.action?p=3
> /myapp/myacction2.action
>
> i reqeust the first action with param as above. when first request completed
> i click a button which request second action. but when second action is
> requested, the parameter part is also passed to second action. the second
> action is requested as /myapp/myacction2.action?p=3, which i dont want. i
> dont want parameter passing.
>
> i search the net, but documents shows how parameter passing is done. i
> couldnt find any document about disabling parameter passing.
>
> how could i disable paramter passing?.
>
> regards,
>
> -Halil AĞIN
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org