File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes logout button is not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "logout button is not working" Watch "logout button is not working" New topic

logout button is not working

Samanthi perera
Ranch Hand

Joined: Jan 08, 2010
Posts: 510
this is logout.jsp

this is servlet

this is servlet

but my logout button is not working.when i click it doesn't go to index.jsp?
Hany Shafik
Ranch Hand

Joined: Jun 21, 2008
Posts: 80
I guess the problem is that you are using type = button instead of type = submit, the form is never submitted
I agree. Here's the link:
subject: logout button is not working
It's not a secret anymore!