You could also use the inbuilt ForwardAction.

Details are in the javadocs of Struts.

Regards,
Vikram

----- Original Message -----
From: "Mohan Radhakrishnan" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, November 01, 2002 9:42 PM
Subject: RE: Reroute to login page


> Hi,
>    I solved my problem by using an action and forwarding to the login
page.
>
> <html:link page="/logoff.action" .....>
>  <html:img imageName="x" src="images/x.gif" width="38" height="34"
> border="0" alt="">
>  </html:img>
> </html:link></td>
>
> Thanks,
> Mohan
>
> -----Original Message-----
> From: Mohan Radhakrishnan
> Sent: Friday, November 01, 2002 4:05 PM
> To: 'Struts Users Mailing List'
> Subject: Reroute to login page
>
>
> Hi,
>    Does html:link need an action class?
>
> <html:link page="/logoff.action"></html:link>
>
> I want to show the login page again when the user logs off. I am thinking
> that it is not possible without associating an action.
>
> <!-- Process a user logoff -->
>     <action    path="/logoff"
>                type="com.hcl.smartmanage.web.LogoutAction"
>                name="noDataForm"
>                scope="request">
>    </action>
>
>  If I use a normal html href( no tags, just html ) instead of html:link
then
> the context doesn't get prefixed  to the action.
>
>   html:link --> http://localhost/SmartManage/logoff.action
>   href      --> http://localhost/logoff.action
>
> What is the best way to re-route to the login page when the user logs off?
>
> Thanks,
> Mohan
>
> --
> To unsubscribe, e-mail:
> <mailto:struts-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@;jakarta.apache.org>
>
> --
> To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
<mailto:struts-user-help@;jakarta.apache.org>
>
>
>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

Reply via email to