Question: What is a output comment?
Question: What is a Hidden comment?
Question: What is an Expression?
Question: What is a Declaration ?
Question: What is a Scriptlet?
Question: What are implicit objects? List them?
Question: Difference between forward and sendRedirect?
Question: What are the different scope values for the
Question: Explain the life-cycle methods in JSP?
Q: What is a output comment?
A: A comment that is sent to the client in the viewable page source.The JSP engine handles an output comment as uninterpreted HTML text, returning the comment in the HTML output sent to the client. You can see the comment by viewing the page source from your Web browser.
JSP Syntax
Example 1
Displays in the page source:
Q: What is a Hidden Comment?
A: 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 code within hidden comment tags. A hidden comment is not sent to the client, either in the displayed JSP page or the HTML page source. The hidden comment is useful when you want to hide or "comment out" part of your JSP page.
You can use any characters in the body of the comment except the closing --%> combination. If you need to use --%> in your comment, you can escape it by typing --%\>.
JSP Syntax
<%-- comment --%>
Examples
<%@ page language="java" %>
..html..
..title..A Hidden Comment
<%-- This comment will not be visible to the colent in the page source --%>