tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 12299] New: - Setting cookie doesn't work in all cases.
Date Wed, 04 Sep 2002 13:00:59 GMT
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:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message