on 1/10/2001 10:26 AM, "Gareth Coltman" <[EMAIL PROTECTED]>
wrote:
> After redirecting a user to a login page when they request a secure
> template, is there a way to send them back to the requested page? e.g.:
>
> User requests Somepage.vm > Redirected to Login.vm > returns to Somepage.vm
>
> In case it isn't clear, Somepage.vm could be ANY secure page, so it isn't
> possible to hard code into a form action.
>
> Gareth
Yes, I use a nextTemplate hidden field in my Login Action class...something
like this:
<http://scarab.tigris.org/source/browse/scarab/src/java/org/tigris/scarab/ac
tions/Login.java?rev=1.2&content-type=text/x-cvsweb-markup>
String nextTemplate =
data.getParameters().getString(ScarabConstants.NEXT_TEMPLATE, null);
if (nextTemplate != null)
setTemplate(data, nextTemplate);
-jon
--
Honk if you love peace and quiet.
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]