What, specifically, are you trying to do? Normally the locale is set by the user's browser, or over-ridden by a session variable (as when the user wants to use a specific language no matter what the browser provides).
posted 11 years ago
Actually is there any option to set the Locale in jsp?
for welsh i want to set locale as cy and want to get that value in my action class?
will it be possible?
you can give a drop down with a key-value pair, containing the Locale ID as the key and name of the language as the value. Upon selecting the language, the key can be passed back to the action class, which you can set in your session.