[struts2] disable parameter pass between actions

2009-09-09 Thread Halil Ağın
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

2009-09-09 Thread Nils-Helge Garli Hegvik
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 halil.a...@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-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org