Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

What are JSP output Comments?

user-image
Question ajoutée par Mohd Nadeem Mohd Rehman Mohammed , Software Engineer , Softworx Technologies
Date de publication: 2016/10/13
Hatrove Melani
par 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
par 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
par 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

Avez-vous besoin d'aide pour créer un CV ayant les mots-clés recherchés par les employeurs?