Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Question: What is a output comment?
Answer: 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.

JSP Syntax:

<!– comment [ <%= expression %> ] –>

Example 1

<!– This is a commnet sent to client on

<%= (new java.util.Date()).toLocaleString() %>

–>
Is it helpful? Yes No

Most helpful rated by users:

©2025 WithoutBook