Hi guys and gals I have a client who is requesting that all the extraneous whitespace be removed from the JSP output on their site, believing it is adversely affecting bandwidth and search engine rankings.
I understand there are different settings in 5.5 and 6.0 to automatically do this but upgrading is not an option. So it seems the only way is to remove all newlines and indentation from certain JSP files.
Is there any way to configure an script to run on Ant deploy that automatically deletes all extra whitespace between JSP tag delimeters? We could do it before deployment but that would turn the page into a few very long lines, unmaintainable.
Joined: Oct 04, 2006
it seems the way to do this is add a block to the Ant build target like
Hi I have applied this requirement in my project also. Pls follow the guidelines as i mentioned below Try to search in the net to get trimfilter.jar jar file and place this jar file in your lib folder. and add these tags in your web.xml file also. <filter> <filter-name>trimFilter</filter-name> <filter-class>com.cj.trim.trimFilter</filter-class> </filter>