If u r using sessions u have to encode ur url and then
redirect to the corresponding page.

-----Original Message-----
From: Steve Raisor [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 07, 2000 6:24 PM
To: [EMAIL PROTECTED]
Subject: Fw: sendRedirect Problems


I am having problems trying to use sendRedirect("url").  The code compiles,
the servlet redirects the browser to the page, however, I get an error on
the server.  I am using WebSphere 3.02.  Anyone have any ideas?  A partial
listing of the error is listed below:

com.ibm.servlet.engine.webapp.WebAppErrorReport: [servlets.login.Login1]
reported an error
      java/lang/Throwable.<init>(Ljava/lang/String;)V+4 (Throwable.java:81)

com/ibm/servlet/engine/webapp/WebAppDispatcherResponse.sendError(ILjava/lang
/String;)V+38 (WebAppDispatcherContext.java:240)

com/ibm/servlet/engine/webapp/WebAppDispatcherResponse.sendError(I)V+37
(WebAppDispatcherContext.java:219)

com/ibm/servlet/engine/webapp/WebAppDispatcherResponse.sendRedirect(Ljava/la
ng/String;)V+31 (WebAppDispatcherContext.java:203)

servlets/login/Login1.doGet(Ljavax/servlet/http/HttpServletRequest;Ljavax/se
rvlet/http/HttpServletResponse;)V+0 (Login1.java:15)

javax/servlet/http/HttpServlet.service(Ljavax/servlet/http/HttpServletReques
t;Ljavax/servlet/http/HttpServletResponse;)V+32 (HttpServlet.java:534)

Steve Raisor

___________________________________________________________________________
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
This e-mail and any files transmitted with it are for the sole use
of the intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and
destroy all copies of the original message. Any unauthorised review, use, disclosure,
dissemination, forwarding, printing or copying of this email or any action taken in
reliance on this e-mail is strictly prohibited and may be unlawful...

                Visit us at http://www.cognizant.com

___________________________________________________________________________
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

Reply via email to