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 45451] New: Tag file attribute evaluation
Date Tue, 22 Jul 2008 08:37:28 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=45451

           Summary: Tag file attribute evaluation
           Product: Tomcat 6
           Version: 6.0.16
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Jasper
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: herve@instranet.com


Hello,
I have an web app with 2 tag files.
Here is my first tag 'testtag':

<%@ tag %>
<%@ attribute name="onLoad" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<c:if test="${! empty onLoad}">
   <input type="hidden" name="OnLoadParameter" value="${onLoad}" />
</c:if>

My second tag ('testtag2') use the first one:

<%@ tag %>
<%@ attribute name="name" %>
<%@ taglib prefix="widget" tagdir="/WEB-INF/tags/widgets" %>

<widget:testtag onLoad="{Script:'jsFunction(\\\'${name}\\\')'}" />


In a JSP, I use the second tag:

...
<%@ taglib prefix="widget" tagdir="/WEB-INF/tags/widgets" %>
...
<widget:testtag2 name="toto" />
...


With tomcat 5.5.25, I have the following result:
<input type="hidden" name="OnLoadParameter"
value="{Script:'jsFunction(\'toto\')'}" />

And with tomcat 6.0.16:
<input type="hidden" name="OnLoadParameter"
value="{Script:'jsFunction('toto')'}" />

It seems that the attribute is evaluate once more on tomcat 6 than on tomcat 5.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


Mime
View raw message