does anyone know if cookies interact in any way with jsp forward tag?
-paul
----- Original Message -----
From: "Paul" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 08, 2004 3:43 PM
Subject: cookies, second instance of, causing tomcat 500 error
Hi All, any help solving this mystery is more than welcome:
problem summary: i am using the identical cookie setting and getting code
on different pages within WEBAPPS/ROOT, but second instance of setting and
getting cookies is causing undecipherable 500 error in Tomcat.
-paul.
i have an application in webapps/ROOT that uses cookies to keep track of
user session information.
within the same directory, i have added independent pages that also set
cookies in same manner, eg.
response.addCookie(new Cookie("ID", xID));
then the cookie name and value are retrieved as follows on separate page:
Cookie[] cookies = request.getCookies();
However, after adding additional cookie pages, whenever i try to submit
additional page that sets cookie, and then forwards to next page that
retrieves cookie, i get very long HTTP Status 500 error from
Apache Tomcat/4.1.27-LE-jdk14
part of which is as follows:
HTTP Status 500 -
----------------------------------------------------------------------------
----
type Exception report
message
description The server encountered an internal error () that prevented it
from fulfilling this request.
exception
org.apache.jasper.JasperException
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
54)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:684)
...root cause javax.servlet.ServletException
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:536)
...
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]