jsp Comments in JSP

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!


There are multiple ways to add comment in JSP page, as it is java view technology which primarily focuses on view part of web application which includes html majorly and being java technology it can contain java code as well. So one needs to understand how to use proper comments in jsp.

There are 3 types of comments we can use in JSP page:

JSP comment

HTML comment

Java comment (which can used inside scriplets)


To see the source code of java class translated by container of JSP page:

Eclipse: WORKSPACE\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\PROJECT_NAME\org\apache\jsp\PAGENAME_jsp.java

Netbeans: Right-click on page and select view servlet

Got any jsp Question?