I'm talking about the current url and the other urls next to the switch
locale call.
 
1) i call myAction and the url=.../myAction.action
2)I click the english flag. The code executed here is the one i posted:

<s:url id="en" action="showAdminPage" includeParams="none">
          <s:param name="request_locale">en_US</s:param>
         </s:url>
         <s:a href="%{en}">



3)The main admin page is shown and the url become
.../showAdminPage.action?request_locale=en_US
4)If I call another action, let's say Action2 the url become:

.../Action2.action?request_locale=en_US 

The parameters remains appended even if I used includeParams="none"



Paranoid_Fabio wrote:
> 
> Hi, i'm new to struts. I'm developing a web application and I can't
> understand why parameters still in the url beetwen actions calls. I try to
> explain it better (sorry for my poor english):
> 
> I call "myAction?paramx=valuex" and the url becomes
> ".../myAction?paramx=valuex" correctly.
> 
> Then, my new displayed JSP call "myAction2" but the shown url is
> ".../myAction?paramx=valuex" even if i invoked myAction2 without any
> parameter.
> So I've two questions:
> 
> 1)It's only a display thing or paramx=valuex is actually passed also to
> myAction2?
> 2)How I can avoid this behaviour?I read about includeparams=false in
> struts.xml, but I'm not sure if it's the   right solution... 
> 
> Thank you in advance!!
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Parameters-in-URL-tp15485039p15502126.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to