You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/12/04 14:48:13 UTC

DO NOT REPLY [Bug 15066] New: - reuse of variables

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=15066>.
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=15066

reuse of variables

           Summary: reuse of variables
           Product: Tomcat 4
           Version: 4.1.16
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Servlet & JSP API
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: mario@ops.at


Using a code like this in jsp results in compile-errors:
---cut---
<%
    if (bAnyVar == true)
    {
        %><anytag id="sHrefString" param="A" /><%
        %><a href="<%=sHrefString%>">TEST TRUE</a><%
    }
    else
    {
        %><anytag id="sHrefString" param="B" /><%
        %><a href="<%=sHrefString%>">TEST FALSE</a><%
    }
%>
---cut---

For the first condition a "String sHrefString" declaration is generated in the 
Servlet.
For the second condition this declaration is missing (wrong reuse??)

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>