[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index] [Home]

Re: Java comments and HTML


James,

This bug was fixed shortly before the 1.0.0 release.  Is it possible
that you're using a prerelease version?  Did you download GNUJSP from
the web site, or did it come with another product?

If the problem persists, try the latest snapshots.  They appear to
handle this well.  But AFAIK so should 1.0.0.

Wes


"James B. Walters" wrote:

> I am using gnujsp-1.0.0 I just noticed that when my JSP contained the
> code:<%...// TEMPLATE FOR A DROP DOWN QUESTION %>
> <TR><TD ALIGN="right"><%= fieldText %></TD> The TR and TD tags were
> not sent to the browser.What happened was it produced the code: //
> TEMPLATE FOR A DROP DOWN QUESTION out.print ("\r\n<TR><TD
> ALIGN=\"right\">"); Since the newline was outside the <% %> it was
> sent to the browserinstead of being placed in the Java source, and the
> out.print() statementwas generated on the same line as the Java source
> comment.I just added a blank line inside the scriplet to fix the
> problem,but I think this behaviour needs to be addressed
> somewhere.Either JSP engines should start a new line of code before
> everyout.print line they generate or there should be some warningabout
> using // comments somewhere. James