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 16727] New: - Incorrect exception raised when tag file uses jsp:invoke to store result of fragment into session scope and calling page doesn't participate in a session.
Date Mon, 03 Feb 2003 18:37:56 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=16727>.
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=16727

Incorrect exception raised when tag file uses jsp:invoke to store result of fragment into
session scope and calling page doesn't participate in a session.

           Summary: Incorrect exception raised when tag file uses jsp:invoke
                    to store result of fragment into session scope and
                    calling page doesn't participate in a session.
           Product: Tomcat 5
           Version: Nightly Build
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Jasper2
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: Ryan.Lubke@Sun.COM


Table JSP.5-8 states that the container must throw am IllegalStateException at
runtime if scope is session and the calling page does not participate in a session.

Consider the following:

TestPage.jsp
-----------------------------------------
<%@ page session="false" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="tags" %>
<tags:notInSession>
    <jsp:attribute name="attr1">
        attribute value
    </jsp:attribute>
</tags:notInSession>
------------------------------------------

notInSession.tag
------------------------------------------
<%@ attribute name="attr1" fragment="true" %>

<jsp:invoke fragment="attr1" var="someVar" scope="session" />
------------------------------------------

If I wrap the section of the calling page that invokes the tag with 
a try catch, an Exception is indeed thrown, but it is an instance of
JspException.  If I check the root exception of the JspException it is
an instance of IllegalArgumentException.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message