This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes logout problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "logout problem" Watch "logout problem" New topic
Author

logout problem

Bob Green
Ranch Hand

Joined: Feb 29, 2004
Posts: 93
I run into a problem with logout and it drives me crazy. Here's my problem, when I click on the Sign Out hyperlink, my application tries to call j_security_check and returns an error because it can not find this page. I have looked at this problem for a long time, can anyone help me with this.

Here's my SignOutAction, what did I do wrong?

TIA

[BPSouther: Added code tags]

[ July 02, 2007: Message edited by: Ben Souther ]
[ July 02, 2007: Message edited by: Ben Souther ]
Yogendra Joshi
Ranch Hand

Joined: Apr 04, 2006
Posts: 213
Hi ,

Just give a check to web.xml file i.e the deployment descriptor file.

It seems , there is an element configured there for <login-config>
as FORM..

whenever this is configured , it internally checks with j_security_check...

So , if you find an entry like



try removing it , restart the server and try again... I guess it should work.

Cheers ,

Yogendra N Joshi.


Meri Zindagi Hain Tab Tak.. Jab Tak Tera Sahara.... Har Taraf Tu Hi Tu Hain SAI Tera Hi Hain Nazara.....
Bob Green
Ranch Hand

Joined: Feb 29, 2004
Posts: 93
Yogendra, thank you so much for your response. I don't think it works for me if I remove the FORM; I need to use the form that I implemented instead of the default login form.

Bob
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: logout problem
 
Similar Threads
Session problem or the browser problem?
JSP Error
Cearing browser Cache using Servlet
Logout servlet problem with back button
JSP HttpSession issue - some pages work, some don't