org.apache.struts.actions
Class LocaleAction
public final class LocaleAction
Implementation of Action that changes the user's
java.util.Locale
and forwards to a page, based on request level
parameters that are set (language, country, & page).
private Log | log - Commons Logging instance.
|
addErrors , addMessages , execute , execute , generateToken , getDataSource , getDataSource , getErrors , getLocale , getMessages , getResources , getResources , getServlet , isCancelled , isTokenValid , isTokenValid , resetToken , saveErrors , saveErrors , saveErrors , saveMessages , saveMessages , saveToken , setLocale , setServlet |
log
private Log log
Commons Logging instance.
execute
public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception
Change the user's
java.util.Locale
based on
ActionForm
properties.
This
Action
looks for
language
and
country
properties on the given form, constructs an
appropriate Locale object, and sets it as the Struts Locale for this
user's session.
Any
ActionForm
, including a
DynaActionForm
, may be used.
If a
page
property is also provided, then after
setting the Locale, control is forwarded to that URI path.
Otherwise, control is forwarded to "success".
- execute in interface Action
mapping
- The ActionMapping used to select this instanceform
- The optional ActionForm bean for this request (if any)request
- The HTTP request we are processingresponse
- The HTTP response we are creating
Copyright B) 2000-2007 - The Apache Software Foundation