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=11674>.
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=11674

include throws IllegalStateException

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|Blocker                     |Normal
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |
            Version|4.1.8                       |4.1.10



------- Additional Comments From [EMAIL PROTECTED]  2002-09-09 13:25 -------
Not quite. When I replace the extension ".jspf" to ".jsp" and thus change
<jsp:include page="included.jspf"/> to <jsp:include page="included.jsp"/>
everything works fine. However, <% pageContext.include("included.jsp"); %>"
still throws an exception. See below for the first lines of the stack trace.

On the other hand I think it would be good if Tomcat as the JSP reference
implementation supported the ".jsf" and ".jspf" extensions out of the box. The
JSP 1.2 Specification suggests them in chapter 2.1.7:

"We recommend, but do not mandate, that:
- ".jsp" files correspond to top level JSP files containing a JSP page.
- "Included fragments not use the ".jsp" extension. Any other extension will do,
although ".jspf" and ".jsf" seem reasonable extensions and are offered as
suggestions."

And here's the stack trace:

2002-09-09 13:12:05 JspFactoryImpl: Exception initializing page context
java.lang.IllegalStateException: Cannot create a session after the response has
been committed
        at
org.apache.coyote.tomcat4.CoyoteRequest.doGetSession(CoyoteRequest.java:1871)
        at
org.apache.coyote.tomcat4.CoyoteRequest.getSession(CoyoteRequest.java:1718)
        at
org.apache.coyote.tomcat4.CoyoteRequestFacade.getSession(CoyoteRequestFacade.java:365)
        at
org.apache.coyote.tomcat4.CoyoteRequestFacade.getSession(CoyoteRequestFacade.java:375)
        at
javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:268)
        at
org.apache.jasper.runtime.PageContextImpl._initialize(PageContextImpl.java:138)
        at
org.apache.jasper.runtime.PageContextImpl.initialize(PageContextImpl.java:114)
        at
org.apache.jasper.runtime.JspFactoryImpl.internalGetPageContext(JspFactoryImpl.java:175)
        at
org.apache.jasper.runtime.JspFactoryImpl.getPageContext(JspFactoryImpl.java:154)
        at org.apache.jsp.included_jsp._jspService(included_jsp.java:33)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to