In my application, I am using websphere compiler to compile the JSPs. There are lots of white spaces that are generated in the servlet that is generated for that JSP...having this white space in the compiled JSP is raised as a flag by the network group. Some of the compiled JSPs have more than 100 KB of white space...which is causing unnecessary network traffic.
Is there any tool of any option while compiling the JSPs to remove the white spaces from the JSPs completely??
Thanks,
-
removing extra white spaces in compiled JSPs (6 messages)
- Posted by: M T
- Posted on: February 04 2006 20:01 EST
Threaded Messages (6)
- removing extra white spaces in compiled JSPs by Marina Prikaschikova on February 06 2006 07:54 EST
- Remove white space by M T on February 17 2006 13:06 EST
- removing white spaces from JSPs by M T on February 25 2006 09:11 EST
- Remove white space by M T on February 17 2006 13:06 EST
- removing extra white spaces in compiled JSPs by Jordi Ramot on February 28 2006 13:01 EST
- removing extra white spaces in compiled JSPs by Jordi Ramot on February 28 2006 13:04 EST
- Removing white spaces from jsp by M T on July 28 2006 03:09 EDT
- removing extra white spaces in compiled JSPs by Jordi Ramot on February 28 2006 13:04 EST
-
removing extra white spaces in compiled JSPs[ Go to top ]
- Posted by: Marina Prikaschikova
- Posted on: February 06 2006 07:54 EST
- in response to M T
See for example Trim filter in JSOS:
http://www.servletsuite.com/servlets/trimflt.htm -
Remove white space[ Go to top ]
- Posted by: M T
- Posted on: February 17 2006 13:06 EST
- in response to Marina Prikaschikova
I did put the entries in teh web XML...but my websphere JSP compiler is not recognizing the <filter> node....it is giving me errors...
do I have to use a different JSP compiler? -
removing white spaces from JSPs[ Go to top ]
- Posted by: M T
- Posted on: February 25 2006 21:11 EST
- in response to M T
I was able to compile the JSPs with the filter jar file and making the web.xml entries....
But when finally the JSp is invoked from the application...and I clicked view source....I can the spaces in the JSP as is...!!
anything that I need to do specifically? -
removing extra white spaces in compiled JSPs[ Go to top ]
- Posted by: Jordi Ramot
- Posted on: February 28 2006 13:01 EST
- in response to M T
In Tomcat 5.5+ you can get rid of whitespaces in your webapp by adding this param to web.xml:
<init-param>
<param-name>trimSpaces</param-name>
<param-value>true</param-value>
</init-param>
Don't know if it works in Websphere too. -
removing extra white spaces in compiled JSPs[ Go to top ]
- Posted by: Jordi Ramot
- Posted on: February 28 2006 13:04 EST
- in response to Jordi Ramot
In Tomcat 5.5+ you can get rid of whitespaces in your webapp by adding this param to web.xml:<init-param> <param-name>trimSpaces</param-name> <param-value>true</param-value></init-param>Don't know if it works in Websphere too.
If you put it in $CATALINA_HOME/conf/web.xml you get rid of whitespaces for all JSPs of all webapps. -
Removing white spaces from jsp[ Go to top ]
- Posted by: M T
- Posted on: July 28 2006 15:09 EDT
- in response to Jordi Ramot
WORKED FINE..!!! Since I am using struts all my requests are *.do..when we put *.do in web.xml the filter worked fine.. Thanks