You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Anthony Martin <an...@fdmgroup.com> on 2002/11/04 18:23:21 UTC

jspc problem: precompilation inserts  character

Hi,

 I have hit a very interesting problem with precompilation of jsp files
using the jspc.bat which is distributed with Tomcat.

 In trying to precompile a jsp that includes the 'pound' character (£),
jspc.bat generates a .java file which prefixes the 'pound' character with an
'A-circumflex' character (Â).  This happens consistently, despite using very
minimal jsp content.

E.g. the following jsp code:

	<html>
  		<body>
			£
		</body>
	</html>

... produces: 

	out.write("<html>\r\n<body>\r\n£\r\n\r\n</body>\r\n</html>");


Just in case it's relevant, I called jsp with the following parameters:

C:\Tomcat_Home\bin\jspc.bat -d C:\temp\jspctest -p jsp -webinc
C:\temp\Jsp_Home\WEB-INF\theXML.xml -webapp C:\temp\Jsp_Home


Please help!


________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: jspc problem: precompilation inserts  character

Posted by peter lin <pe...@labs.gte.com>.
you need to replace the pound character with the equivalent HTML code.

as in replace with "&pound;". that should work.

peter



Anthony Martin wrote:
> 
> Hi,
> 
>  I have hit a very interesting problem with precompilation of jsp files
> using the jspc.bat which is distributed with Tomcat.
> 
>  In trying to precompile a jsp that includes the 'pound' character (£),
> jspc.bat generates a .java file which prefixes the 'pound' character with an
> 'A-circumflex' character (Â).  This happens consistently, despite using very
> minimal jsp content.
> 
> E.g. the following jsp code:
> 
>         <html>
>                 <body>
>                         £
>                 </body>
>         </html>
> 
> ... produces:
> 
>         out.write("<html>\r\n<body>\r\n£\r\n\r\n</body>\r\n</html>");
> 
> Just in case it's relevant, I called jsp with the following parameters:
> 
> C:\Tomcat_Home\bin\jspc.bat -d C:\temp\jspctest -p jsp -webinc
> C:\temp\Jsp_Home\WEB-INF\theXML.xml -webapp C:\temp\Jsp_Home
> 
> Please help!
> 
> ________________________________________________________________________
> This e-mail has been scanned for all viruses by Star Internet. The
> service is powered by MessageLabs. For more information on a proactive
> anti-virus service working around the clock, around the globe, visit:
> http://www.star.net.uk
> ________________________________________________________________________
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>