By: Guru SinghQuestion: What is an output comment in JSP?
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.
<!-- comment [ <%= expression %> ] -->
<!-- This is a commnet sent to client on
<%= (new java.util.Date()).toLocaleString() %>
Displays in the page source:
<!-- This is a commnet sent to client on January 24, 2004 -->
Most Viewed Articles (in Interview )
Latest Articles (in Interview)
Comment on this tutorial
- Data Science
- Cloud Computing
- Java Beans
- Mac OS X
- Office 365
- Tech Reviews