Hi.
It appears that certain JSP 2.0 EL expressions may or may not work
depending on choosen JSP syntax. E.g., the expression
<td>${param['foo']}</td>
is ok for standard syntax, but will result into
org.apache.jasper.JasperException: /test.jsp() Unterminated ${ tag
exception with XML syntax page.
I believe the problem is withing JspDocumentParser.java code. The
characters() function assumes that the parser always passes the content
of a text node with a single call which is not always the case.
Actually, org.xml.sax.ContentHandler API specifies that "SAX parsers may
return all contiguous character data in a single chunk, or they may
split it into several chunks". Moreover, it splits text nodes content
into several chunks whenever it meets '[' or ']' within the node, so the
code fails to parse any correct EL expression using array access syntax.
Please suggest fix or workaround. Unfortunately using standard syntax
wouldn't work for me, I stuck to xml.
--
Alexey Naidyonov <[EMAIL PROTECTED]>
Growler Home
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]