> I am executing a .jhtml page which has a reference <SERVLET ...>
> to a servlet. In the doGet() method of that servlet, I test if the
> HttpSession is null, and, if it is, I redirect the user by using the
> response.sendRedirect() method. The problem is that the page is NOT being
> redirected, instead of that, the rest of the HTML page is being show, what
> i didn't want to happen. What can I do?
After the sendRedirect(), put a return;
-jon
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html