JSP Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 810 Page Views: 

What types of comments are available in the JSP?



Posted By: Avi Date: 16 September 2009 05:27:34 AM
 Answer:

There are two types of comments are available in JSP: Hidden comments and Output comments. Hidden comments don't appear in the generated html output, while output comments appear in the generated html output.

Syntax of hidden comment:
<%-- This is hidden comment --%>

Syntax of output comment:


Posted By: eTechPlanet


Date: 16 September 2009 05:27:34 AM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image h9SvRP
Related Questions
JSP : How will you communicate from an applet to servlet?

How will you communicate from an applet to servlet?

There are three ways to communicate from an applet to servlet and they are: HTTP Communication (Text....
Category: JSP Date: 11/8/2010 11:17:58 PM
JSP : What is the using of “super.init (config)” in servlets ?

What is the using of “super.init (config)” in servlets ?

To access the ServletConfig from the servlet.
Category: JSP Date: 11/8/2010 10:12:56 PM
JSP : What is the container?

What is the container?

container is a runtime support of a system-level entity and provides components with services such a....
Category: JSP Date: 11/8/2010 8:22:59 PM
JSP : How setting a cookie?

How setting a cookie?

Cookie c = new Cookie("name","value"); response.addCookie(c);
Category: JSP Date: 11/8/2010 7:50:57 PM
JSP : How can a servlet refresh automatically?

How can a servlet refresh automatically?

By using client-side refresh or server push.
Category: JSP Date: 11/8/2010 7:17:57 PM