Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

2.5. Comment Syntax


Syntax:        <%-- comment --%>
               <!-- comment -->
               

There are two different types of comments in JSP. The difference between the types of comments lies in whether the comments are viewable after the JSP engine parses the JSP page. The first type of comment is the standard HTML (and XML) comment, which is delineated by: <!-- comment -->. This comment is ignored by both the JSP engine and the browser, and is left intact. In effect all comments in HTML style are considered Template Data. To view a comment like this, simply choose to view source in an HTML browser.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint