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 
       */

    %>









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:ADS_TO_REPLACE_1 <%-- comment text --%> this is the format of the JSP comments
JSP Comment and HTML Comment
JSP Comment and HTML Comment  Difference between JSP Comment & HTML Comment ?   JSP Comments are removed by the JSP Engine during the translation phase (JSP Comments are not even part of the compilation unit
Advertisements
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
COMMENT & HIDDEN COMMENT IN JSP
COMMENT & HIDDEN COMMENT IN JSP In this section , we will learn how to implements comment & hidden comment in JSP. COMMENT : Comment generates a comment that is sent to the client. The comment use in JSP is very similar
Hidden Comment
Hidden Comment  What is a Hidden Comment ?   Hi, Hidden Comments are JSP comments. A comments that documents the JSP page but is not sent to the client. The JSP engine ignores a hidden comment, and does not process any
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
linking jsp with database using classes and methods and then access them all in to my jsp page - JSP-Servlet
linking jsp with database using classes and methods and then access them all in to my jsp page  how to connect jsp page with mysql using classes... all with the help of java beans in u'r own jsp page
How to comment javascript code?
How to comment javascript code?  How to comment javascript code
JavaScript Comment Tag
JavaScript Comment Tag  How to write comment in JavaScript
javascript comment syntax html
javascript comment syntax html  javascript comment syntax html
Comment PHP Script - MobileApplications
Comment PHP Script  I wanted to write a PHP Script that makes it possible to post the comment on reply. A user can add his comment to any of the reply in the forum. How can I do
sql add comment to column
sql add comment to column  Sql query to add comments to column
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
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... page,that calls this jsp page and show all data from the table. Click
JSP - JSP-Interview Questions
A comment marks text or lines that the JSP container should ignore. A comment is useful when you want to comment out part of your JSP... are the comments in JSP(java server pages)and how many types and what are they.Thanks inadvance
upload and download all kinds of files in jsp - Java Beginners
upload and download all kinds of files in jsp  how to upload and download all kinds of files ex: image file,pdf,.xls in jsp. your help is highly appreciated.  we can upload the all type s of files into oracle 10g
JavaScript Comment
JavaScript Comment: Comments are placed within the programming language coding to hide all those statements, which are not supposed to run. Comment make... text in a program, at that situation we should put all those codes within comments
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-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 'cubicweb-comment'
ModuleNotFoundError: No module named 'cubicweb-comment'  Hi, My... named 'cubicweb-comment' How to remove the ModuleNotFoundError: No module named 'cubicweb-comment' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'cubicweb-comment'
ModuleNotFoundError: No module named 'cubicweb-comment'  Hi, My... named 'cubicweb-comment' How to remove the ModuleNotFoundError: No module named 'cubicweb-comment' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'jira-comment'
ModuleNotFoundError: No module named 'jira-comment'  Hi, My Python... 'jira-comment' How to remove the ModuleNotFoundError: No module named 'jira-comment' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'mac-comment'
ModuleNotFoundError: No module named 'mac-comment'  Hi, My Python... 'mac-comment' How to remove the ModuleNotFoundError: No module named 'mac-comment' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'ringo_comment'
ModuleNotFoundError: No module named 'ringo_comment'  Hi, My... 'ringo_comment' How to remove the ModuleNotFoundError: No module named 'ringo_comment' error? Thanks   Hi, In your python
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 '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-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-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 'cubicweb-comment'
ModuleNotFoundError: No module named 'cubicweb-comment'  Hi, My... named 'cubicweb-comment' How to remove the ModuleNotFoundError: No module named 'cubicweb-comment' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'django-comment'
ModuleNotFoundError: No module named 'django-comment'  Hi, My... named 'django-comment' How to remove the ModuleNotFoundError: No module named 'django-comment' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'flake8-block-comment'
ModuleNotFoundError: No module named 'flake8-block-comment'  Hi...: No module named 'flake8-block-comment' How to remove the ModuleNotFoundError: No module named 'flake8-block-comment' error? Thanks   Hi
ModuleNotFoundError: No module named 'gh-comment'
ModuleNotFoundError: No module named 'gh-comment'  Hi, My Python... 'gh-comment' How to remove the ModuleNotFoundError: No module named 'gh-comment' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'jira-comment'
ModuleNotFoundError: No module named 'jira-comment'  Hi, My Python... 'jira-comment' How to remove the ModuleNotFoundError: No module named 'jira-comment' error? Thanks   Hi, In your python
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 Elements
use on a JSP page. This section will describe you all types of JSP elements... Comment Elements JSP comment elements are used to hide your code from the "view page source". However, you can use HTML comment tags in JSP page
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
HOW TO CREATE COMMENT IN WEBSITE AND CONNECT TO DATABASE?
HOW TO CREATE COMMENT IN WEBSITE AND CONNECT TO DATABASE?  HOW TO CREATE COMMENT IN WEBSITE AND CONNECT TO DATABASE
HOW TO CREATE COMMENT IN WEBSITE AND CONNECT TO DATABASE?
HOW TO CREATE COMMENT IN WEBSITE AND CONNECT TO DATABASE?  HOW TO CREATE COMMENT IN WEBSITE AND CONNECT TO DATABASE
HTML5 comment tag Example, Definition of <!--  --> comment tag.
HTML5 comment tag Example,, Definition of <!--  --> comment tag. In this tutorial, we will introduce you to the <!-- --> comment tag of HTML5. This tag is used to insert the comment inside the source code. The text
Use of Comment Function in PHP
, at that case we should put all those codes within comments. Line of Comments... * Multiple * LineADS_TO_REPLACE_4 * comment*/ echo "This is not a comment"; ?>ADS_TO_REPLACE_5 Output: This is not a comment
jsp
jsp  In any jsp all implicit objects are available directly, in such a case why we need PageContext object again

Ads