Thanks. I copied the code in the JSP over to the homepage JSP and resaved and it works. Must have been the JSP file encoding like you say.
Allistair Crossley New Media Group, QAS Ltd Telephone: 020 7819 5343 > -----Original Message----- > From: Tim Funk [mailto:[EMAIL PROTECTED] > Sent: 18 August 2004 11:53 > To: Tomcat Users List > Subject: Re: Odd characters inserted in response after JSPC > > > I had the same problem working with a Unicode file. I don't > know what my > editor was doing - I just used vi and killed the character > and all worked well. > > -Tim > > Allistair Crossley wrote: > > > Hi Guys > > > > I have compiled all my JSPs with JSPC. I have found that 3 > odd characters occur at the very start of most of my my > responses which use a certain template JSP ... > > > > > > > > I use 2 layouts, one for home and one for other pages. This > problem is not happening on the home page although both that > and the page layout use the same JSP code > > > > The home class code shows the following: > > > > _jspx_out = out; > > out.write("\r\n\r\n\r\n\r\n\r\n<!DOCTYPE html > PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" > \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r > \n\r\n<html > xmlns=\"http://www.w3.org/1999/xhtml\">\r\n\r\n\t<head>\r\n\t\ > t<title>iQ : The QAS Intranet</title>\r\n\t\t<link > rel=\"stylesheet\" href=\"/resources/skins/"); > > > > Whilst the page class code has 3 output numbers \357\273\277 !?: > > > > _jspx_out = out; > > > out.write("\357\273\277\r\n\r\n\r\n\r\n\r\n<!DOCTYPE html > PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" > \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r > \n\r\n<html > xmlns=\"http://www.w3.org/1999/xhtml\">\r\n\t<head> > \r\n\t\t<title>iQ : "); > > > > The JSP top sections in both home and page JSPs are > > > > <%@ page contentType="text/html; charset=UTF-8" %> > > <%@ page language="java" errorPage="/views/error/error.jsp" %> > > <%@ taglib uri="/WEB-INF/iq.tld" prefix="iq" %> > > <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %> > > > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 > Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > > Any ideas why JSPC is adding these? > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE> ------------------------------------------------------- QAS Ltd. Developers of QuickAddress Software <a href="http://www.qas.com">www.qas.com</a> Registered in England: No 2582055 Registered in Australia: No 082 851 474 ------------------------------------------------------- </FONT> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
