JSP Comments

What are the ways to write comments in the JSP page? Give example.

Questions by nishant.mca2010   answers by nishant.mca2010

Showing Answers 1 - 13 of 13 Answers

Every one know this very simple question best ans my side:-

Two types of comments are allowed in the Jsp page:
1) Hidden comment: This comment will not appear in the output

2) Output comment: This type of comment will appear in the output.

If we have to pass the comment inside the directive then there we use a single line comment i.e. //

delindia

  • Jan 3rd, 2012
 

HTML Comments
- The Container passes these comments straight on to the client, where the browser interprets them as HTML comments. The commented out blocks still display in the source code.

JSP Comments
- The Container completely strips out anything between these comment tags when translating the JSP to a servlet. Nothing is shown in the generated source code.

  Was this answer useful?  Yes

RoyalB

  • May 31st, 2012
 

By using Callable Statement

like CallableStatement csmt=con.PrepareCall("{PackageName.ProcedureName}");

In jsp U can write these code with in Scriptlet

Code
  1. <% CallableStatement csmt=con.PrepareCall("{PackageName.ProcedureName}"); %>

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions