java.lang.Object
org.apache.struts.action.Action
com.aoindustries.web.struts.PageAction
com.aoindustries.web.struts.LoginAction
- Author:
- AO Industries, Inc.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringaddTarget(Supplier<HttpSession> session, String targetUrl) Adds a target to the user session.execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response, Registry pageRegistry) Once the page registry is set resolved, this version of the execute method is invoked.static StringgetTargetUrl(HttpSession session, String target) Gets the target URL from user session.Methods inherited from class com.aoindustries.web.struts.PageAction
executeMethods 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
-
Constructor Details
-
LoginAction
public LoginAction()
-
-
Method Details
-
addTarget
Adds a target to the user session.- Returns:
- The target id or
nullif the target URL should not be used for post-login redirects
-
getTargetUrl
Gets the target URL from user session. -
execute
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response, Registry pageRegistry) throws Exception Description copied from class:PageActionOnce the page registry is set resolved, this version of the execute method is invoked. By default, returns mapping for "success".- Overrides:
executein classPageAction- Throws:
Exception
-
