I see what your saying, but now you are treading that
fine line between HTML and Java. It makes since to me that when the *.jsp
file is parse, the HTML is irrelevant to the parser. That's just stuff
that gets sent to the client. So really you have a dilemma, do you parse
HTML AND Java just to be able to tell when you are in a comment, or do you leave
it up to the programmer to comment any Java in the <% %> tags. A
double parse is pretty expensive when comments are all you care about. But
that's just my two cent...
Jay Herrick
Halo-FireAnt
----- Original Message -----From: Mark MinnoyeTo: Jay HerrickSent: Thursday, March 11, 1999 6:05 PMSubject: Re: Re: <!-- xxxxxxx -->when i include some jsp-tags between <!-- and --> they get executed, not ignored or removed. I think it should be an important feature that you could include some comment in your JSP-file (and then removed when posted to the client).I assume you could write <% //some comment %> but this doesn't look nice to me.Regards,Mark-----Oorspronkelijk bericht-----
Van: Jay Herrick <[EMAIL PROTECTED]>
Aan: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Datum: donderdag 11 maart 1999 15:47
Onderwerp: Re: <!-- xxxxxxx -->Hey Mark,I'm running Jrun2.3 as well, and the only thing I've noticed is that the comment tags get removed when the *.jsp file is parsed. This makes sense... comments are for the developer and anyone else looking at the source code. You would want the final HTML that gets sent to the browser to be as small as possible. Looks like a feature, not a bug... ;-)Jay HerrickHalo-FireAnt----- Original Message -----From: Mark MinnoyeSent: Thursday, March 11, 1999 1:00 PMSubject: <!-- xxxxxxx -->Another anoying thing:the comment tag : <!-- comment --> doesn't work in my JSP-pages.Is this normal or a 'bug' in Jrun2.3 witch i'm using ?Is there another way to include comment in a JSP?Mark.
GIF image