You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by ha...@informatiefabriek.nl on 2003/06/05 12:59:10 UTC

question

Hi all,

In my struts application I verify if a user is valid, and if so I store 
the user information in the Session object. 
I use an object called 'user'.

In the rest of my JSP's I check if this 'user' object is present, and if 
not I redirect the user to the login-screen.

I use this code:

<logic:notPresent name="user">
        <logic:redirect href="http://wonen.dev.mediatoolbox.nl"/>
</logic:notPresent>

As you can see, I hard-coded the redirection URL into the JSP. But I don't 
want hardcode this URL.
Are there any possibilities to maybe get this from a properties file?

Thanks,

Harm de Laat
Informatiefabriek
The Netherlands


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