That does seem a pain - 1200 bytes, ouch (just about fill up an early ZX
spectrum ;).
I've seen others do this - sjsp for example and Tomcat does too.
It may be the way you're writing the templates ?
Have you checked whether the code generation is just putting in CR/LF to
match those in your template?
i.e.
If you have the code:
<% (output some stuff) %>
<% (output some different stuff) %>
Then you might expect output of:
(output some stuff)
(output some different stuff)
Rather than
<% (output some stuff) %><% (output some different stuff) %>
(output some stuff)(output some different stuff)
So have you checked whether it's just putting in the CR/LF to match
those in the human readable template?
If so - you then face the pain of having one line templates ! yuk
If not then I'm a bit stumped. If not, then is it just trying to "make
pretty" the generated html?
Jari
George Pearson wrote:
>
> I've noticed that an extra "return" character is added to *every* line in my
> jsp-generated pages. The uncompiled pages contain a carriage return
> and linefeed on every line of HTML; the generated page contains TWO
> carriage returns and a linefeed on every line.
>
> Why does this matter? The pages I'm generating are in WML, Wireless
> Markup Language, and there's a limit of roughly 1200 bytes that can be
> sent in one page. Thus every byte is worth its weight in gold. I can
> easily remove the extraneous returns from my source files, but I also
> need to eliminate those introduced by the generation process.
>
> Anyone know how to do it?
>
> I'm seeing this using jsp pages under Java Web Server 2.0 running on
> Windows NT. (The same happens with jhtml pages with the latest JWS 1.1
> and with JWS 2.0 on NT.)
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> FAQs on JSP can be found at:
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html