tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allistair Crossley" <Allistair.Cross...@QAS.com>
Subject Odd characters inserted in response after JSPC
Date Wed, 18 Aug 2004 10:32:02 GMT
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?

Cheers, Allistair.


<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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message