"Michael Duffy" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
>
> Sorry, but I thought the question had to do with
> getting rid of whitespace from JSPs generated at
> runtime. Perhaps I lost the thread. - MOD
>
Actually, since all your JSP-tags and HTML-tags will be side by side in your
JSP-source you'll save a lot of whitespace, especially when using
<c:forEach> or similar constructs. At least it saved me about 50-80% of the
resulting HTML, depending on the original JSP.
Try it out for yourself to see if it does the job for you...
Cheers,
Yann
> --- Yann C�bron <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > here's a snippet I use in my build.xml after copying
> > the JSPs and HTML files
> > to the build dir:
> >
> > <replaceregexp match=">\s*<"
> > replace="><" flags="g"
> > byline="false">
> > <fileset dir="${build.home}"
> > includes="**/*.html,**/*.htm,**/*.jsp"/>
> > </replaceregexp>
> >
> > This is not a perfect solution, but it gets you a
> > *very* compact HTML output
> > and it does not have any runtime-costs like e.g.
> > Servlet-filters or other
> > tags which strip the whitespace *after* the response
> > has been generated.
> >
> > HTH,
> > Yann
> >
> > "Neil Zanella" <[EMAIL PROTECTED]> schrieb im
> > Newsbeitrag
> >
> news:[EMAIL PROTECTED]
> > >
> > > Hello,
> > >
> > > Is there really no NEAT way of removing those
> > blank lines left over from
> > > JSP tags in the output??? I'm shocked!!! :-()
> > >
> > > Thanks! :-)
> > >
> > > Neil
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]