Hello all, As a Struts n00b I'm trying to make a modification to an already-existing Struts application. Currently there are some Actions that anyone who uses the application is supposed to be able to execute, these Actions simply extend Action and override the execute method (as you'd expect). Then, there are some actions that require the user to be "logged on" in order for the Actions to occur. This is currently accomplished by having an abstract class SecureAction which extends Action, and overrides the execute method:
public final ActionForward execute (ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { if (request.getSession().getAttribute("username") == null) { return mapping.findForward("login"); } return run(mapping, form, request, response); } public abstract ActionForward run (ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response); As you can see, if an Action that extends SecureAction (which I'll refer to as a secure action) gets forwarded-to, it'll forward to the login screen. The modification? Under the current design after you've logged in, there's no way to continue on with the original secure action; so, if you wade through a whole bunch of navigation to get an Action started up (and have forgotten to logon beforehand), you get redirected to the logon page, logon, and then have to repeat all of the navigation! I wish to make it so that the login page can somehow just continue the original action if the user logs in successfully. Is there any way to do this under the current design of having my actions extend SecureAction, or will this require changing this design? Thanks! Tim --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]