You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Flavio Tordini <fl...@tin.it> on 2004/04/06 13:17:02 UTC
jspx and html entities
hi all,
i'm creating a jspx file from an xhtml template. the xhtml contains html
entities such as ì
Jasper is throwing this Exception:
org.apache.jasper.JasperException: /index.jspx(23,38) The entity "igrave" was referenced, but not declared.
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:83)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:402)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:126)
org.apache.jasper.compiler.JspDocumentParser.parse(JspDocumentParser.java:241)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:235)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:139)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:237)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:553)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
how can i solve this problem?
thank you in advance,
flavio
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: jspx and html entities
Posted by Victor Anyakin <ad...@slavicclub.com>.
Flavio Tordini wrote:
> hi all,
> i'm creating a jspx file from an xhtml template. the xhtml contains html
> entities such as ì
Hi, Flavio
I've also experienced this problem. The solution is to use &igrave;
in your XML-formatted JSP page. You may also find a very funny thing
with ampersands in URL passed by <a href=""></a> (@see chapter C.12,
http://www.w3.org/TR/2002/REC-xhtml1-20020801). The only solution i've
found is to "flatten" this tag:
<a href="<c:out value="${url}" escapeXml="true"/>"
>A</a>
I hope someone will tell me a better way to solve this issue.
--
З повагою,
Віктор Анякін (ІТ Спеціаліст) <ad...@slavicclub.com>
Victor Anyakin (IT Spetialist) <ad...@slavicclub.com>
OpenPGP Key ID: 0xC1F60269
Key Fingerprint: FD67 FE27 0618 9702 9A27 2171 0867 5AC7 C1F6 0269
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org