<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Nilesh Manohar &#38; Erzsebet Marothi &#187; trim whitespace</title>
	<atom:link href="http://www.nileshmanohar.com/tag/trim-whitespace/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nileshmanohar.com</link>
	<description>Our little space on Internet</description>
	<lastBuildDate>Mon, 26 Jul 2010 11:42:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>stripping out extra spaces in JSP output</title>
		<link>http://www.nileshmanohar.com/2008/01/24/stripping-extra-spaces-in-jsp-output/</link>
		<comments>http://www.nileshmanohar.com/2008/01/24/stripping-extra-spaces-in-jsp-output/#comments</comments>
		<pubDate>Thu, 24 Jan 2008 11:43:41 +0000</pubDate>
		<dc:creator>Nilesh Manohar</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[jsp]]></category>
		<category><![CDATA[tomcat]]></category>
		<category><![CDATA[trim whitespace]]></category>

		<guid isPermaLink="false">http://www.nileshmanohar.com/2008/01/24/stripping-extra-spaces-in-jsp-output/</guid>
		<description><![CDATA[While working on JSP running on TOMCAT I noticed that when views the source of the outputted jsp there is to much whitespace in the source. In order to remove all the unnecessary whitespace from the output thereby saving on &#8230; <a href="http://www.nileshmanohar.com/2008/01/24/stripping-extra-spaces-in-jsp-output/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>While working on JSP running on TOMCAT I noticed that when views the source of the outputted jsp there is to much whitespace in the source. In order to remove all the unnecessary whitespace from the output thereby saving on bandwidth is to do the following (for tomcat).</p>
<p>Fine the web.xml located in the conf folder of tomcat installation directory. Find the<br />
&lt;servlet&gt;<br />
&lt;servlet-name&gt;jsp&lt;/servlet-name&gt;<br />
&lt;servlet-class&gt;org.apache.jasper.servlet.JspServlet&lt;/servlet-class&gt;<br />
&lt;init-param&gt;<br />
&lt;param-name&gt;fork&lt;/param-name&gt;<br />
&lt;param-value&gt;false&lt;/param-value&gt;<br />
&lt;/init-param&gt;<br />
&lt;init-param&gt;<br />
&lt;param-name&gt;xpoweredBy&lt;/param-name&gt;<br />
&lt;param-value&gt;false&lt;/param-value&gt;<br />
&lt;/init-param&gt;<br />
&lt;load-on-startup&gt;3&lt;/load-on-startup&gt;<br />
&lt;/servlet&gt;<br />
and replace it with the following<br />
&lt;servlet&gt;<br />
&lt;servlet-name&gt;jsp&lt;/servlet-name&gt;<br />
&lt;servlet-class&gt;org.apache.jasper.servlet.JspServlet&lt;/servlet-class&gt;<br />
&lt;init-param&gt;<br />
&lt;param-name&gt;fork&lt;/param-name&gt;<br />
&lt;param-value&gt;false&lt;/param-value&gt;<br />
&lt;/init-param&gt;<br />
&lt;init-param&gt;<br />
&lt;param-name&gt;xpoweredBy&lt;/param-name&gt;<br />
&lt;param-value&gt;false&lt;/param-value&gt;<br />
&lt;/init-param&gt;<br />
<strong> &lt;init-param&gt;<br />
&lt;param-name&gt;trimSpaces&lt;/param-name&gt;<br />
&lt;param-value&gt;true&lt;/param-value&gt;<br />
&lt;/init-param&gt;</strong><br />
&lt;load-on-startup&gt;3&lt;/load-on-startup&gt;<br />
&lt;/servlet&gt;</p>
<p>Then just restart tomcat</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nileshmanohar.com/2008/01/24/stripping-extra-spaces-in-jsp-output/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
