@WebServlet(name="LocaleSelectionController",
urlPatterns="/selectLocale")
public class LocaleSelectionController
extends javax.servlet.http.HttpServlet
Call this at /selectLocale&selection=[locale_string]
For example: /selectLocale&selection=en_US or /selectLocale&selection=es
Write an error to the log (and to DisplayMessage) if the selection is not
syntactically valid.
Write a warning to the log if the selection code is not one of the selectable
Locales from runtime.properties, or if the selection code is not recognized
by the system.
Set the new Locale in the Session using SelectedLocale and return to the
referrer.| Modifier and Type | Field and Description |
|---|---|
static String |
PARAMETER_SELECTION |
| Constructor and Description |
|---|
LocaleSelectionController() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
protected void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic static final String PARAMETER_SELECTION
protected void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
IOException
doPost in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionCopyright © 2022. All rights reserved.