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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to