Hi, Under JSP 2.0 in strict XHTML mode (not just JSP 2.0 in general), yup, you got it.
Yoav Shapira http://www.yoavshapira.com >-----Original Message----- >From: Gili [mailto:[EMAIL PROTECTED] >Sent: Monday, November 22, 2004 11:13 PM >To: [EMAIL PROTECTED] >Subject: Re: Bug using ? > > > Solved by replacing with &nbsp;. Under JSP 2.0 you >apparently need to double-escape entity tags. > >Gili > >On Mon, 22 Nov 2004 21:38:15 -0500, Gili wrote: > >>Hi, > >> I've got a small testcase using JSP 2.0: > >><html xmlns="http://www.w3.org/1999/xhtml" >> xmlns:jsp="http://java.sun.com/JSP/Page" >> version="2.0"> >> <jsp:directive.page contentType="text/html;charset=UTF-8"/> >> >></html> > >> When I try compiling this I get: > >>org.apache.jasper.JasperException: The entity "nbsp" was referenced, but >not declared. > >> Other entity tags seems to work fine. I'm new to JSP 2.0 but I >haven't found a solution for this problem >>online. Is this a bug in Tomcat? I saw multiple refereces online where >they say you need to add > >>[<!ENTITY nbsp " ">] > >> to the <!DOCTYPE ...> declaration, but as far as I know, JSP 2.0 >doesn't *have* a DOCTYPE declaration so I >>can't insert an <!ENTITY> anywhere. Could someone please help? How would I >fix this code? > >>Thanks, >>Gili > > > This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]