Vijay Kumar
all comment in jsp
1 Answer(s)      2 years and 8 months ago
Posted in : JSP-Interview Questions

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 Pages:
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 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
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
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
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
Use of Comment Function in PHP
, at that case we should put all those codes within comments. Line of Comments...;; /* * This * is * called * Multiple * Line * comment*/ echo "This is not a comment"; ?> Output: This is not a comment
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
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
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
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
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
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
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
Excel Cell Comment
Excel Cell Comment In this section, you will learn how to add a comment with a excel cell using Apache POI API. A comment is associated with a cell. It is a rich text note. The comment will be showing separately in rectangular text
Site Map - All java tutorials
Site Map - All java tutorials In this section of sitemap we have listed all the important sections of java tutorials. Select the topics you want to learn.   We have given the important links of Java, JSP, Struts
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
How do i do the coding for 'leaving a comment' in java
How do i do the coding for 'leaving a comment' in java  i am designing a webpage.In my webpage i want to add the option of adding a comment by the readers of the page.how do i do
Insert a Processing Instruction and a Comment Node
Insert a Processing Instruction and a Comment Node  ... a Processing Node and Comment Node in a DOM document. JAXP (Java API for XML... an instance of an XMLDOMElement. Comment c = doc.createComment("
jsp
jsp  In any jsp all implicit objects are available directly, in such a case why we need PageContext object again
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
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   Hi all..I am new in jsp. I have a question. I want develope a jsp page it contain two part for two different user group. i want to hide some information from user1 group and same as user2 group. can i do this in single jsp
Simple program to combine all html,ajax,java,servlets,jsp,json - Java Beginners
Simple program to combine all html,ajax,java,servlets,jsp,json  Hi, I learned Java,servlets,jsp basics, html, ajax, json and css. I want to do a program which is a combination of all those technology. For that, i planned
How to make the horizontal navigation bar common to all pages?
How to make the horizontal navigation bar common to all pages?  Hi, I did a project using JSP. And now I am having issue on how to make the navigation bar common to all the jsp pages. I have a header, and navigation bar and want
How to display all the Select values from the MySQL database table in where condition= In JSP?
the condition,but i want all the rows to be displayed in the jsp file. Plz...How to display all the Select values from the MySQL database table in where condition= In JSP?  **Hi in jsp,SQL select statement,i am unable
How to display all the rows in JSP ,MySQL select condition statement IN dept_table
How to display all the rows in JSP ,MySQL select condition statement IN dept_table  I iam unable to display all the rows in JSP select statement from... is displayed.@select * from department where dept_no=10;My display code in JSP
jsp
jsp  hai good morning all jsp beginner myself is sathishkumar i am developing a web application jsp. in this application i generate id card.how can u autogenerate the id in jsp.if u have sample source code available send
jsp
jsp  Develop a JSP page (with some fields) with all the JSP tags with a submit button.Make the JSP page to communicate with the database   ...); } %> JSP Tutorials Coonection JSP with MYSQL
jsp
jsp  i have a form containing 3 drop down list and radio button and a checkbox(holiday). i want that if i select the checkbox i.e holiday all dropdown radio button should be disabled. please help
jsp
the roles which are allowed to access the resource. Define all the roles
JSP
are allowed to access the resource. Define all the roles in the web
JSP Training
(JSTL), building database-driven web applications and all the fundamentals of JSP... JSP Training     Java Server Pages (JSP) is Sun's solution for developing dynamic web sites. JSP provides excellent
JSP Interview Questions
;!-- This is output comment -->   Question: What is JSP declaration... JSP Interview Questions       Question: What do you understand by JSP Actions
Cookies in JSP
Cookies in JSP In this section, we will discuss about handling cookies in JSP... depend on them. Second, as the author of JSP/servlet that use cookies, you... their computer or cookie files. Cookie class : In JSP , cookie are the object
Comments in Jsp
that implements the Jsp page. The jsp comment don't appear in the output produced... of comments are allowed in the Jsp page: 1) Hidden comment: This comment...; <b>JSP Comment:</b> </br> &lt;&#37;&
JSP Cookies Example
JSP Cookies Example   ... how to handle cookies in JSP pages. In this tutorial you will learn how to add cookies through jsp page and then show the value of the same cookie in another
jsp webapplication
jsp webapplication  hai Good mring to all
Creates element node, attribute node, comment node, processing instruction and a CDATA section
Creates element node, attribute node, comment node, processing...; This Example shows you how to Create an Element node ,Comment node.... Comment node = doc.createComment("Comment for company"
Deleting Cookie in JSP
Deleting Cookie in JSP In this section, we will discuss about deleting cookies in JSP with an example. Cookie class : In JSP , cookie are the object... a name, a single value, and optional attributes such as a comment, path
jsp to excel - JSP-Servlet
jsp to excel  Hi All, I'm writing a program of jsp to Excel conversion with Using POI. My problem is i'm unable to put multiple data into excel...)); } FileOutputStream fileOut = new FileOutputStream("c:\\excel\\wct.xls
jsp query - JSP-Servlet
jsp query  in first division there is one table which contains data with edit button... when i will click on edit button that division will become hidden and new division come with all related data
JSP - JSP-Servlet
new to JSP's , thank you all for ur time and support  Hi friend, I am... on a jsp , once the user selects one of them and clicks a button (say ok) then i... selection Simple Selection Page In JSP
Jsp pagination - JSP-Servlet
Jsp pagination  Iam doing a online exam application for this i need to retrieve questions one after the other iam able to add all the questions... tell me the solution  Hi friend, For Jsp pagination application
insertin form data into databse and blank all form field when click on submit button
insertin form data into databse and blank all form field when click on submit button  sir, i useing the jsp. i want insert form data into Ms-Access database when click on submit button and blank all form field after inserting