Hi everyone
What is the best way to redirect a servlet to the same servlet?
When I tried it by a simple sendRedirect, it worked, but none of the
attributes I set in the session during the first call of the servlet were
available in the second call. It works fine if I redirect to some other
servlet.
What I'm trying to do is this: I have a servlet which acts as a
'Controller.' It accepts a path info which tells it to do some work. I dont
want the user to bookmark this url, so I'd like to change the address in
his browser to some other url (referring to the same Controller servlet,
but a different path info). I thought a redirect would be just great, but
the session attributes are acting funny.
If I made sense to anyone, please advice.
Thanks in advance.
Erwin
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets