struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: Request Parameter not being set on Action
Date Wed, 02 Aug 2017 09:01:47 GMT
2017-08-02 8:34 GMT+02:00 Rubens Gomes <rubens_gomes@hotmail.com>:
> The request below is sent , but the parameters (request_locale/pageUrl) are not set on
the action.
>
> http://localhost:8080/change-locale.do?request_locale=en&pageUrl=%2Fview-login.do

The "request_locale" parameter is a special parameter that tells
I18NInterceptor to change locale, it will be removed after that so you
cannot access it in an action.
If you need to access locale in an action and assuming your extending
the ActionSupport class just call the "getLocale()" method.

Regarding the "pageUrl" parameter, can you start with a simple
example? Or maybe post your struts.xml plus an action's class?



Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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


Mime
View raw message