all comment in jsp

all comment in jsp

Defined all comment in jsp ?

View Answers

October 29, 2010 at 5:18 PM

jsp support two type comment : JSP comment and HTML comment

JSP Comment:

<%-- comment text --%>

this is the format of the JSP comments specified in the JSP Specifications. A JSP Comment is removed by the JSP Engine at the translation time itself and the compilation unit doesn't contain them. Comments don't need to ne compiled as we all know that they are not executed and they simply serve the purpose of making the source code more readable, and maintainable.

HTML Comment:

<!-- comment text -->

this is the syntax of an HTML comment as specified by the HTML Specifications. A JSP page considers this as a normal HTML tag and hence it doesn't remove them. All HTML comments are maintained in the response and one can easily see them jusy by viewing the page source of the rendered HTML page in the browser.

jsp scriptlet tag also support java comment and these comments are treated the same way they are treated in a normal Java program.They all are removed before compilation and like JSP Comments they are also not part of the compilation unit.It defined as:

<%
        String name;  
        // java comment

       /*
         multiple 
         line
         java 
         comment 
       */

    %>

Ads









Related Tutorials/Questions & Answers:
all comment in jsp
all comment in jsp  Defined all comment in jsp ?   jsp support two type comment : JSP comment and HTML comment JSP Comment: <%-- comment text --%> this is the format of the JSP comments specified in the JSP
JSP Comment Types with example
JSP Comment Types with example  Hi, Please explains me about the different types of comments in JSP and how use each of these comment types? Thanks   Hi, Commenting in JSP allows the programmer to embed the comment
Advertisements
common database jsp file for all the jsp files in the application
common database jsp file for all the jsp files in the application  hi... use of this single jsp file while connecting to database rather than writing connectivity code in all the jsp pages . send me the code for that . thanks
Difference between documentation comment and multiline comment in java?
Difference between documentation comment and multiline comment in java?  Difference between documentation comment and multiline comment in java
jsp mysql
........... like that all requests nd comments should be display through jsp and mysql...jsp mysql  actually i want a page that has two frames nd in 1 frame... to reflect in other frame followed by a comment box and also after giving comment
JavaScript Comment Tag
JavaScript Comment Tag  How to write comment in JavaScript
javascript comment syntax html
javascript comment syntax html  javascript comment syntax html
Access all the fields from table through JSP
Access all the fields from table through JSP.... This is first jsp page that has a link 'show data from table', which displays all... on the link given in the first jsp page,that calls this jsp page and show all data
sql add comment to column
sql add comment to column  Sql query to add comments to column
JSP
JSP  what are the different scopes an object can have in a jsp page   JSP Scope Variables: Page scope-It makes the data available to the given page. Request Scope-It shares the data between all the components which
jsp
jsp  In any jsp all implicit objects are available directly, in such a case why we need PageContext object again
JSP Elements
use on a JSP page. This section will describe you all types of JSP elements...:tagName/> Miscellaneous JSP Comment Elements JSP comment elements are used... HTML comment tags in JSP page but, when user of your website will choose
i want to do a project using jsp and servlet....What are all the materials i need to study
i want to do a project using jsp and servlet....What are all the materials i need to study   i want to do a project using jsp and servlet....What are all the materials i need to study ?   Please visit the following
JSP
what is JSP forward tag for  what is JSP forward tag for   It forwards the current request to another JSP page. Below is the syntax for the same:- <jsp:forward page="...url..." /> We can also forward parameter
jsp
jsp  how jsp translated into servlets
JSP
JSP  How to run jsp program in eclipse
jsp
jsp  how to create jsp page
Jsp
Jsp  Can I implement interface in jsp
jsp
jsp  how to include two jsp page
ModuleNotFoundError: No module named 'banner_comment'
ModuleNotFoundError: No module named 'banner_comment'  Hi, My... named 'banner_comment' How to remove the ModuleNotFoundError: No module named 'banner_comment' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'code-comment'
ModuleNotFoundError: No module named 'code-comment'  Hi, My Python... 'code-comment' How to remove the ModuleNotFoundError: No module named 'code-comment' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'code-comment'
ModuleNotFoundError: No module named 'code-comment'  Hi, My Python... 'code-comment' How to remove the ModuleNotFoundError: No module named 'code-comment' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'code-comment'
ModuleNotFoundError: No module named 'code-comment'  Hi, My Python... 'code-comment' How to remove the ModuleNotFoundError: No module named 'code-comment' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'comment-builder'
ModuleNotFoundError: No module named 'comment-builder'  Hi, My... named 'comment-builder' How to remove the ModuleNotFoundError: No module named 'comment-builder' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'comment-builder'
ModuleNotFoundError: No module named 'comment-builder'  Hi, My... named 'comment-builder' How to remove the ModuleNotFoundError: No module named 'comment-builder' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'comment-creator'
ModuleNotFoundError: No module named 'comment-creator'  Hi, My... named 'comment-creator' How to remove the ModuleNotFoundError: No module named 'comment-creator' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'comment-creator'
ModuleNotFoundError: No module named 'comment-creator'  Hi, My... named 'comment-creator' How to remove the ModuleNotFoundError: No module named 'comment-creator' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'comment-formatter'
ModuleNotFoundError: No module named 'comment-formatter'  Hi, My... named 'comment-formatter' How to remove the ModuleNotFoundError: No module named 'comment-formatter' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'comment-builder'
ModuleNotFoundError: No module named 'comment-builder'  Hi, My... named 'comment-builder' How to remove the ModuleNotFoundError: No module named 'comment-builder' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'comment-parser'
ModuleNotFoundError: No module named 'comment-parser'  Hi, My... named 'comment-parser' How to remove the ModuleNotFoundError: No module named 'comment-parser' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'comment-creator'
ModuleNotFoundError: No module named 'comment-creator'  Hi, My... named 'comment-creator' How to remove the ModuleNotFoundError: No module named 'comment-creator' error? Thanks   Hi, In your python

Ads