What is an Output Comment in JSP ?

We can write output in JSP in such a way that it becomes a comment in HTML code. This comment will not be visible in the web browser. But when we view page source to see HTML, we can see output comment.

An HTMLcomment is of following format...

If we output comment in above format, it will be visible to client.



You May Interest

How Will You Create a Shallow Copy of a Map in Java ?

What is Template Method Design Pattern in Java ?

What are the Similarities Between HashSet and HashMap in Java ?

What is the Importance of hashCode and equals Methods in Java ?

What are the Situations in Which You Choose HashSet or TreeSet in ...