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] Tag file attribute evaluation
Date Sun, 10 Aug 2008 16:35:45 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=45451





--- Comment #1 from ilango <ilangocal@yahoo.com>  2008-08-10 09:35:44 PST ---
(In reply to comment #0)
> 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.
> 

I would like to test this behaviour. Do you have a simple test case?


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