Greetings,

Tomcat 5.0.24

We are in the process of migrating our application to Tomat 5 from version 4.

There is a strange situation with some of our usage of tags that I'm hoping someone might be able to comment on. Basically within Tomcat 4.0 the following lines of .jsp code worked fine:

<jsp:text><![CDATA[
    <tr>
      <td>]]>
      <jsp:expression>manufacturer + "/" + model</jsp:expression>
      <![CDATA[
      </td>
      <td>]]>
      <jsp:expression>groupName</jsp:expression>
      <![CDATA[
      </td>
      <td>]]>
      <jsp:expression>hardwareName</jsp:expression>
      <![CDATA[
      </td>
      <td>]]>
      <jsp:expression>ipAddress</jsp:expression>
      <![CDATA[
      </td>
      <td>]]>
      <casero:a href="%= actionLocation %">Actions</casero:a>
      <![CDATA[
      </td>
    </tr>]]>
</jsp:text>

HOWEVER under Tomcat 5.0 the following error is produced:

org.apache.jasper.JasperException: /node/search.jsp(234,25) &lt;jsp:text&gt; must not have any subelements
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)


org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:357)

org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:81)

org.apache.jasper.compiler.JspDocumentParser.parse(JspDocumentParser.java:196)

org.apache.jasper.compiler.ParserController.doParse(ParserController.java:197)

org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)

org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:196)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:415)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:398)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:507)


org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:277)

   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:223)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:810)


and this code can be made to work by doing the following:


<tr>
      <td>
      <jsp:expression>manufacturer + "/" + model</jsp:expression>
      </td>
      <td>
      <jsp:expression>groupName</jsp:expression>
      </td>
      <td>
      <jsp:expression>hardwareName</jsp:expression>
      </td>
      <td>
      <jsp:expression>ipAddress</jsp:expression>
      </td>
      <td>
      <casero:a href="%= actionLocation %">Actions</casero:a>
      </td>
    </tr>


Is it our usage of elements nested within <jsp:text> that is incorrect or is there some sort of bug with Tomcat 5.0 parser here?


thanks in advance for any help,
-Ivan/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to