Wednesday, February 21, 2007

Jsp: Output comment and Hidden Comment

OutputComment:
A comment that is sent to the client in the viewable page source.The JSP engine handles an output comment as uninterpreted HTML text, returning the comment in the HTML output sent to the client. You can see the comment by viewing the page source from your Web browser.

HiddenComment:
A comments that documents the JSP page but is not sent to the client. The JSP engine ignores a
hidden comment, and does not process any code within hidden comment tags. A hidden comment is not sent to the client, either in the displayed JSP page or the HTML page source. The hidden comment is useful when you want to hide or "comment out" part of your JSP page.

You can use any characters in the body of the comment except the closing --%> combination. If you need to use --%> in your comment, you can escape it by typing --%\>.

2 comments:

tisay said...

Thank you so much for providing this informative article. An excellent read, please keep us informed like this. Kudos!

www.n8fan.net

Unknown said...

i enjoy most of your articles,the articles are so nice for readers.

Mario
www.gofastek.com