Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Session Filter

Status
Not open for further replies.

pravzICS

Programmer
Aug 8, 2005
12
0
0
US
Hi all,

I am kinda new in Struts. just started developing an application using struts. My session filter (.java, defined in web.xml) filters all .do actions, except say, login.do. what do I do so that it does't filter the other .do actions.
For eg.
if((URI.endsWith("/login.jsp")) ||(URI.endsWith("/login.do"))...)
then, allow,
else, show invalid session page.

please suggest. thanks in advance...
pravz

 
I am actually new with Struts. my question is if I have an action say changePassword.do, and if I don't put changePassword.do in:
if((URI.endsWith("/login.jsp")) ||(URI.endsWith("/login.do")) ||(URI.endsWith("/changePassword.do"))
...)
then, allow,
else, show invalid session page.

if I give the action there, it allows to pass, but its wrong to have it there. Am I missing something somewhere ?
what is this <controller> tag in struts-config.xml used for? i think i dont have it.
please suggest.
thanks,
pravz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top