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:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Added newlines in beginning
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 % htmlHTML tagscontent/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] htmlHTML tagscontent/html - what you can do is reformat your jsp like this : %@ page import=java.lang.*%% //some code%htmlHTML tagscontent/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 [EMAIL PROTECTED] -Original Message- From: Jason Webber [mailto:[EMAIL PROTECTED]] Sent: 25. febrúar 2002 18:34 To: [EMAIL PROTECTED] 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:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Added newlines in beginning
I presume you are talking about JSP files. Are you using several lines with imports, language definition, taglib definition, etc. The carriage returns at the end of each line are kept in the output. make sure you don't have spaces or carriage returns between your scriplets. Bert At 10:34 25/02/2002 -0800, you wrote: 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:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]