Correct, the includeParams attribute needs to be set to 'none'. > The URL tag isn't meant to be used with a query > string. The best way to write > this would be: > > <s:url action="Welcome"> > <s:param name="request_locale" value="en" /> > s:url> > > The reason is the url tag has this "includeParams" > tag, which can automatically > include all the query string parameters in the URL. > The default value is GET, > eaning all the GET parameters will be automatically > included in the final URL, > which is what we see here. > > Don > > Ted Husted wrote: > > So, in the MailReader app, we are changing the > locale via a link like this: > > > > <h3>Language Options</h3> > > <ul> > > <li><a href="<s:url > > > action="Welcome?request_locale=en"/>">English</a></li> > > <li><a href="<s:url > > > action="Welcome?request_locale=ja"/>">Japanese</a></li > > > > <li><a href="<s:url > > > action="Welcome?request_locale=ru"/>">Russian</a></li> > > </ul> > > > > But, when the link is invoked, it starts rewriting > the selected value > > back to all the links. (Try it and see.0 > > > > * > http://planetstruts.org/struts2-mailreader/Welcome.do > > > > In the case of changing locales, this can negate > changing it back > > since the current value is being written to the > links. > > > > Is this the expected behavior? > > > > -Ted. > > > > > ------------------------------------------------------ > --------------- > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > > ------------------------------------------------------ > --------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > --------------------------------------------------------------------- Posted via Jive Forums http://forums.opensymphony.com/thread.jspa?threadID=38532&messageID=75998#75998
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]