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 16088] New: - Translation error not generated if body of jsp:attribute, providing an attribute value of type JspFragment, contains a scripting element
Date Wed, 15 Jan 2003 00:30:39 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=16088>.
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=16088

Translation error not generated if body of jsp:attribute, providing an attribute value of
type JspFragment, contains a scripting element

           Summary: Translation error not generated if body of
                    jsp:attribute, providing an attribute value of type
                    JspFragment, contains a scripting element
           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


>From JSP.5.10

   "For custom action attributes of type javax.servlet.jsp.tagext.JspFragment, 
    the container must create a JspFragment out of the body of the 
    <jsp:attribute> action and pass it to the tag handler.  This applies for
    both Classic Tag Handlers and Simple Tag Handlers.  A translation error must
    result if the body of the <jsp:attribute> action is not scriptless in this
    case"

Given
------------------------------------------------------------
<%@ page contentType="text/plain" %>
<%@ taglib uri="http://blurb.org" prefix="attr" %>

<attr:classic>
    <jsp:attribute name="fragment">
        <%= "fragment body" %>
    </jsp:attribute>
</attr:classic>
-------------------------------------------------------------

In the TLD, the classic tag has one attribute named 'fragment' with the 
<fragment> element body set to true.

--
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