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 4571] New: - Custom Tag with scriptlet Expression attribute not compiled correctly
Date Thu, 01 Nov 2001 18:00:42 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=4571>.
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=4571

Custom Tag with scriptlet Expression attribute not compiled correctly

           Summary: Custom Tag with scriptlet Expression attribute not
                    compiled correctly
           Product: Tomcat 4
           Version: 4.0.1 Final
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Jasper
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: gwatts@onepipeline.com


A custom tag with a scriptlet expression for an attribute will compile the 
scriptlet attribute as a string, instead of a variable.

The code in the jsp:

<test:tasks command="<%=command%>">

The resulting compiled code:

_jspx_th_test_tasks_0.setCommand("<%=command%>");


>From Sun's site:
http://java.sun.com/products/jsp/tutorial/TagLibraries6.html

The following tag has an attribute named date, which accepts a String value 
obtained by evaluating the variable today: 

<tlt:greeting date="<%= today %>" />

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