You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by David LAFAY <da...@laposte.net> on 2003/09/16 10:06:20 UTC

Re: Prevent URL requested directly from browser

PUT the following code into the begin of all your JSP :
<logic:notPresent name="REMOTEUSER">
<logic:forward name="login"/>
</logic:notPresent>

Then don't forget to declare a global forward named "login" for redirect to
your login.jsp
and don't forget to put de the user login name into the Session on your
LoginAction

David

"veera maria" <ma...@hotmail.com> a �crit dans le message news:
BAY9-F53P9ww1WySvX500001496@hotmail.com...
> Hello,
>
> What is the best way to prevent user to request web application's
> actions from browser manually?
>
> E.g. user is using web application and taking it's current url
> to clipboard. Then user goes e.g. to Google for surfing for a while.
> After surfing (s)he pastes web applications url back to browser's
> address field.
> Best technique in Struts applicaton to prevent this?
>
> Vera
>
> _________________________________________________________________
> Tilaa nyt Hotmail postit k�nnykk��si! http://www.msn.fi/mobiili/




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