tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reynir Hübner <rey...@hugsmidjan.is>
Subject RE: Added newlines in beginning
Date Mon, 25 Feb 2002 18:53:53 GMT
Hi, 
I dont know if you are using JSP to render your HTML but if you are
maybe this will help 

if your page looks like this : 
------------------------------------
<%@ page import="java.lang.*"%>
<% 
//some code
%>
<html>HTML tags&content</html>
-------------------------------------
you´ve already put 2 newlines into your html page :
sometimes this is what causes it to happen. 
------------------------------------
<%@ page import="java.lang.*"%>[\n]
<% 
//some code
%>[\n]
<html>HTML tags&content</html>
-------------------------------------

what you can do is reformat your jsp like this : 

------------------------------------
<%@ page import="java.lang.*"%><% 
//some code%><html>HTML tags&content</html>
-------------------------------------

often all the newline chars that you have in the top of your page are
rigth after some <taglib /> tags an such. 

hope it helps
-reynir@hugsmidjan.is




> -----Original Message-----
> From: Jason Webber [mailto:webber@mminternet.com]
> Sent: 25. febrúar 2002 18:34
> To: tomcat-user@jakarta.apache.org
> Subject: Added newlines in beginning
> 
> 
> Is there anyway to get rid of about 10 newlines that show up before my
> output actually begins?  I have looked all through my code and I don't
> believe that they are coming from my code.  Anybody else have 
> this problem?
> Any suggestions appreciated.  It is now a problem now that I 
> am writing csv
> files to out.
> 
> Windows 2000
> Apache 1.3.22
> Tomcat 3.3
> 
> 
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> 
> 

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message