org.apache.struts.apps.mailreader.actions
Class LocaleAction
java.lang.Object
org.apache.struts.action.Action
org.apache.struts.actions.BaseAction
org.apache.struts.actions.DispatchAction
org.apache.struts.actions.MappingDispatchAction
org.apache.struts.apps.mailreader.actions.BaseAction
org.apache.struts.apps.mailreader.actions.LocaleAction
public final class LocaleAction
- extends BaseAction
Change user's Struts Locale
.
Fields inherited from class org.apache.struts.action.Action |
servlet |
Methods inherited from class org.apache.struts.apps.mailreader.actions.BaseAction |
doCancel, doFindFailure, doFindLogon, doFindSuccess, doGet, doGetSubscription, doGetSubscription, doGetUser, doGetUser, doGetUserDatabase, doInputForward, doLogProcess, doSaveToken, doSaveUser, doSet |
Methods inherited from class org.apache.struts.action.Action |
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocaleAction
public LocaleAction()
execute
public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception
Change the user's Struts Locale
based on request
parameters for "language", "country".
After setting the Locale, control is forwarded to an URI path
indicated by a "page" parameter, or a forward indicated by a
"forward" parameter, or to a forward given as the mappings
"parameter" property.
The response location must be specified one of these ways.
- Overrides:
execute
in class MappingDispatchAction
- Parameters:
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
- Returns:
- An ActionForward indicate the resources that will render the
response
- Throws:
Exception
- if an input/output error or servlet exception occurs
Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.