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
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
addTarget
(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 String
getTargetUrl
(HttpSession session, String target) Gets the target URL from user session.Methods inherited from class com.aoindustries.web.struts.PageAction
execute
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
-
Constructor Details
-
LoginAction
public LoginAction()
-
-
Method Details
-
addTarget
Adds a target to the user session.- Returns:
- The target id or
null
if 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:PageAction
Once the page registry is set resolved, this version of the execute method is invoked. By default, returns mapping for "success".- Overrides:
execute
in classPageAction
- Throws:
Exception
-