You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/09/04 15:00:59 UTC
DO NOT REPLY [Bug 12299] New: -
Setting cookie doesn't work in all cases.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12299>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12299
Setting cookie doesn't work in all cases.
Summary: Setting cookie doesn't work in all cases.
Product: Tomcat 4
Version: 4.0.3 Final
Platform: Sun
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Catalina
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: woolfel@yahoo.com
I looked at the servlet 2.3 spec and I think this behavior might be a bug. I
have two pages. the first page includes a second page. the second page sets some
cookies. If I use include directive <%@ include file="setcookie.jsp" %>, it
works fine. If I switch it to use JSTL <c:import url="setcookie.jsp"/>, it
doesn't set the cookie.
My guess is either the response is getting flushed and cookies erased, or the
response set method isn't working correctly. I looked at the JSTL code and it
uses RequestDispatcher.include() to import local files. The wil only use
HttpUrlConnection if the absolute path is used, ie <c:import
url="http://me.com/file"/>.
I hope some one can verify this is a bug.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>