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


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

Reply via email to