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


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

Reply via email to