struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "vivek shrivastava" <vivek...@hotmail.com>
Subject Confusion with Filter: please help
Date Fri, 03 May 2002 00:56:58 GMT
hi,

I am trying to write my first web application. I am writing a filter to make 
sure that a valid user is logged in before accessing a page.

I have a welcome page in application’s root directory. All other pages are 
under “web-inf” directory.  From my welcome page user can login using 
“login.jsp” page or can create a valid user account using “create_user,jsp” 
page.

Since I am using filter to make sure that a valid user is logged in before 
accessing a page.

How do I make sure that my filter does not try to catch my “login.jsp” or 
“create_user.jsp” page? Since user is on right track. He/she is either 
trying access login page or trying to create one account so there is no need 
to redirect them to login page.

Do I have to “hard code" the name of these two pages to make sure that 
filter does not try to redirect my request to login page again?

Is there any other way to solve this situation? Like url pattern matching in 
struts-config.xml or web.xml file or something like that.

This all may sound stupid but being new to java and struts I am confuse. 
Please do help me.

Thanks



_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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


Mime
View raw message