struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: Forward after <check-login>
Date Tue, 23 Apr 2002 16:10:26 GMT

I've done this using other approaches than Struts.

- Prior to checking for login, store the SUCCESS URL in a property on a
bean that's in request scope.
- Have the login process pull this bean from the request upon successful
login and forward to the SUCCESS URL

In this scenario I'd recommend modifying the <check-login> tag to allow the
following two parameters:

  - "successForward"     - this would allow forwarding to a page defined as
a global forward in the struts-config
 - "successURL"     - this would allow the developer to specify a URL where
the user should forwarded upon login.

You should have all the source code for the <check-login> tag - making
these changes should be about as easy as any other solution.

Andy Timm <> on 04/23/2002 12:13:03 PM

Please respond to "Struts Users Mailing List"

Subject:  Forward after <check-login>

I have some pages which require a user to be logged in
and some which do not.  If the <check-login> tag
determines that there is no user logged in, the user
is forwarded to the login page.  I'd like to remember
where the user came from and forward them there after
a successful authentication.  I'm sure there are
multiple ways of doing this and I would like some
advice.  Thanks, Andrew Timm

Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message