Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I set tomcat to avoid new line generated?

Status
Not open for further replies.

prosper

Programmer
Sep 4, 2001
631
HK
The servlet generated from jsp is always added with the line "\r\n". How can I set tomcat to added no new line automatically.
I know I can avoid this if I write servlet myself or edit the generated servlet.
But I want to do the seting for jsp.
 
Not that I know of.

Why would you want to ? The \t, \r\n marks does not affect the actual html output - just how the html appears when you do "View Source" in the browser ...

--------------------------------------------------
Free Database Connection Pooling Software
 
I generate xml from jsp, netscape 7 consider this "\r\n" as new blank line and consider my xml is invalid.
my xml is fine with ie.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top