The JSP spec, including JSP 1.2, states that whitespace should be preserved. Though the patch won't be implemented, you can check Bug 5560:
<http://nagoya.betaversion.org/bugzilla/show_bug.cgi?id=5560> for a suggested patch to remove the whitespace. You are welcome to customize Jasper if it suits your needs. Cheers, Larry > -----Original Message----- > From: Steve Mactaggart [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 21, 2002 10:28 PM > To: Tomcat Users List > Subject: Removing whitespace. > > > Hi all, > I have some jsp's that are generate some larger html > files. One of the > reasons is the indenting of the code to manage development. > I was wondering > if there is an option for tomcat to remove all whitespace > before it sent the > data. I know that the old Enhydra servlet server used to do > this and in my > case this would save a large amount of size from the > generated html files. > > I don't want to un-indent the code as it will be too hard to maintain. > > FYI, > using Tomcat 3.3-dev on Win2000 and Linux but would be > happy to hear if it > is a feature of 4. > > Thanks for your help > > -------------------------------- > Steve Mactaggart > Senior Java Developer / > Team Leader > > 303 Sport > BH: 9620 7477 > FAX 9620 7377 > -------------------------------- > > > > > -- > 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]>