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/11/27 10:43:23 UTC

DO NOT REPLY [Bug 14888] New: - Incorrect tag translation

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

Incorrect <jsp:plugin> tag translation

           Summary: Incorrect <jsp:plugin> tag translation
           Product: Tomcat 4
           Version: Unknown
          Platform: PC
               URL: http://localhost
        OS/Version: Windows 9x
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Servlet & JSP API
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: kertoip@poczta.onet.pl


In Tomcat 4.1.12 I wrote:
 
<% String str="abc"; %>
<jsp:plugin type="applet" code="Snake" width="500" height="400">
  <jsp:params>
    <jsp:param name="gracz" value="<%= str %>" /> ****
  </jsp:params>
  <jsp:fallback>
    Install JRE...
  </jsp:fallback>
</jsp:plugin>

The **** line is translated:

out.println("<OBJECT classid=\"clsid:8AD9C840-044E-11D1-B3E9-00805F499D93\" 
width=\"500\"" + " height=\"400\"" + " 
codebase=\"http://java.sun.com/products/plugin/1.2.2/jinstall-1_2_2-
win.cab#Version=1,2,2,0\">");
      out.println("<PARAM name=\"java_code\" value=\"Snake\">");
      out.println("<PARAM name=\"type\" value=\"application/x-java-applet;\">");
 
      out.println("<PARAM name=\"gracz\" value= str >");
...

This gives a name of the String parameter instead of its value. In Tomcat 4.0.5 
it gives:
     out.println ("<OBJECT classid=\"clsid:8AD9C840-044E-11D1-B3E9-00805F499D93
\" width=\"500\"  height=\"400\"  
codebase=\"http://java.sun.com/products/plugin/1.2.2/jinstall-1_2_2-
win.cab#Version=1,2,2,0\">");
            out.println ("<PARAM name=\"java_code\" value=\"Snake\">");
            out.println ("<PARAM name=\"type\" value=\"application/x-java-
applet;\">");
             String _jspxString = null;
            _jspxString = str ;
            out.println ("<PARAM name=\"gracz\" value=\""+ _jspxString + "\">");
...
That gives the value of the String variable.

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