Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Translating problem - a TC 5 issue

Vernon Smith

2003-09-17



After upgrading my development box to TC 5.09 beta, I run into a few problems. One of them is a JSP file can't be translated into a Java file properly (?). The section of the Java file is the following:

   if (_jspx_meth_fmt_message_218(pageContext))
    return;
   out.write("</label>\r\n\t\t  ");
   out.write("</td>\r\n     ");
   out.write("<td> \r\n       ");
   out.write("<input type=\"checkbox\" name=\"sport\" value=\"E\" ");
   out.write(String.valueOf( PForm.sportSelectionAttr("E") ));
   out.write(" id=\"sport.E\">\r\n       ");
   out.write("<label for=\"sport.E\">");

which is correct, I believe. But, for the same type of JSP code, the translation is another set of Java code as the followings.

   if (_jspx_meth_fmt_message_219(pageContext))
    return;
   out.write("</label>\r\n\t\t  ");
   out.write("</td>\r\n\t    ");
   out.write("</tr>\r\n    ");
   out.write("<tr class=\"TableRowColor\"> \r\n     ");
   out.write("<td> \r\n       ");
   out.write("<input type=\"checkbox\" name=\"sport\" value=\"u\" ");
   out.write(String.valueOf( PForm.sportSelectionAttr("u") % id="sport.u">
      <label for="sport.u"><fmt:message key="sport.u"/></label>
    </td>
    <td>
      <input type="checkbox" name="sport" value="G" <%= PForm.sportSelectionAttr("G") % id="sport.G">
      <label for="sport.G"><fmt:message key="sport.G"/></label>
     </td>
    <td>
      <input type="checkbox" name="sport" value="t" <%= PForm.sportSelectionAttr("t") % id="sport.t">
      <label for="sport.t"><fmt:message key="sport.t"/></label>
     </td>
    <td>
      <input type="checkbox" name="sport" value="v" <%= PForm.sportSelectionAttr("v") % id="sport.v">
      <label for="sport.v"><fmt:message key="sport.v"/></label>
    </td>
     </tr>
  <tr class="TableRowColor">
    <td>
      <input type="checkbox" name="sport" value="W" <%= PForm.sportSelectionAttr("W") ));
   out.write(" id=\"sport.W\">\r\n       ");
   out.write("<label for=\"sport.W\">");


Is it a bug in TC 5.09 or another issue involved?




____________________________________________________________
University of Phoenix Online. Free Information - Online Classes
http://r.hotbot.com/r/lmt_uopo/http://servedby.advertising.com/click/site=563632/mnum=125825
This offer applies to U.S. Residents Only

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.