Why not use a servlet filter ?

Thanks
 
-- pady
[EMAIL PROTECTED]
 

-----Original Message-----
From: David Thielen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 26, 2003 4:16 PM
To: Struts-Users
Subject: login test in a jsp page - any suggestions

Hi;

I want to put a test in every jsp page to see if the user is logged in. And
if not, to forward them to login.jsp. Is there any way to do this other than
putting java code in my jsp? I'm hoping there is some struts system like
<html:check app="MyAction"/>.


(Yes, I can have everything be an action that does this test and then goes
to the jsp page - but in that case what if they type the path for the jsp
page directly?)

thanks - dave

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to