Hi,
I use jsp:plugin tag with some parameters like
below. It works fine on Tomcat 4.0.5 but it doesn't work on Tomcat 4.1.12. It
looks like Tomcat 4.1.12 doesn't transate the **** line correctly.
abc.jsp file
<% 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> Tomcat 4.0.5 gives (abc$jsp.java): out.println ("<OBJECT classid="" width=\"500\" height=\"400\" codebase="" href="">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;\">"); //here the value of my variable is printed to
output
String _jspxString = null; _jspxString = str ; out.println ("<PARAM name=\"gracz\" value=\""+ _jspxString + "\">"); ... Tomcat 4.1.12 gives (abc_jsp.java):
out.println("<OBJECT classid="" width=\"500\"" + " height=\"400\"" + " codebase="" href="">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;\">"); //here the name of my variable is printed to
output
out.println("<PARAM name=\"gracz\" value= str >"); ... 4.1.12 prints the name of my variable instead of its value. And why does
that happen?
With best regards Piotr Bieganowski |