AuthenticatedForwardAction
This action ensures the user is logged in before forwarding the request to the success-mapping. If the user is not logged in, the user will be forwarded to "not-logged-in" mapping
Struts config
<action path="/doSomeThingAuthenticated" type="com.escenic.profile.presentation.struts.AuthenticatedForwardAction" name="com.escenic.tools.struts.ForwardForm" input="/doSomeThingAuthenticated-input.jsp" validate="true"> <forward name="success" path="/doSomeThingAuthenticated-success.jsp"/> </action>
Action Forwards
- input page
-
not-logged-in if the user was not logged in
success
-
If user is autenticated.