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 13081] - ScriptingVariableVisitor#setScriptingVars does not account for scriptlet scopes
Date Tue, 01 Oct 2002 19:46:27 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=13081>.
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=13081

ScriptingVariableVisitor#setScriptingVars does not account for scriptlet scopes





------- Additional Comments From jan.luehe@sun.com  2002-10-01 19:46 -------
I do believe the problem stated in 13132 does apply to your situation. Remember
13132 started out with this code fragment:

<% if (condition) { %>
<i18n:message key="some.key" id="myID"/>
<% } else { %>
<i18n:message key="some.other.key" id="myID"/>
<% } 
%>

which is exactly what you are trying to do. The purpose of the example I gave in
the evaluation of 13132 is to show that some developers may rely on AT_END
variables to be declared after the call to the tag handler's doEndTag() method,
so that a nested tag may declare an AT_END variable of the same name, but with a
different type than an AT_END variable declared by the enclosing tag.

Would the workaround that I suggested for bug 13132 work for you, i.e., do
something like the following:

<prefix:outerTag>
<% if (true) { %>
<prefix:innerTag id="x" />
<% } %>
<prefix:innerTag id="y" />
</prefix:outerTag>

I am little reluctant adding a configuration property for this, as it would not
be portable across containers.

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