Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

What are JSP output Comments?

user-image
Question added by Mohd Nadeem Mohd Rehman Mohammed , Software Engineer , Softworx Technologies
Date Posted: 2016/10/13
Hatrove Melani
by Hatrove Melani , Admin Staff , Lebsack PLC PLC

Text or statements that the JSP container should disregard are marked with JSP comments. When you want to "comment out" or hide a section of your JSP page, you can use a JSP comment.

fnf mod

<!-- --> this is the output comment

soubhagya kumar bitt
by soubhagya kumar bitt , Technical Lead , IBM india

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

mohammad maraqa
by mohammad maraqa , Head of IT / Project Manager , Amlaki / Abu Dhabi Municipality

there is two types of comments in JSP 

 

Example of hidden comment:

<%--Thisis hidden comment --%>

Example of output comment :

<!-- This is output comment -->The only difference is that the output comment will appear in the source of the jsp page while the hidden will not appear , note that both comments will skipped by the compiler

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.