pantichd on 19/07/06 20:15, wrote:
Is there a way for an action class to send a user to a url other than those
defined as forwards in the struts-config.xml file?
My situation is this:
A filter checks every request in the system to verify that the user has
logged in. If not, the user is sent to the login.jsp page.
The login.jsp executes a login action class that has a forward for a
successful and unsuccessful login.
The action class is a generic class that can be used by different apps. I
want to customize it so that an app can specify that a user should be sent
to the original url requested upon a successful login.
String forwardUrl = "/private/payments.do?" + customQueryString;
forward = new ActionForward("anyName", forwardUrl, false);
But I would recommend against going down that route, or at least try to keep it really simple.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]