What is a output comment?

March 7th, 2007 Admin Posted in JSP(Java Server Pages) No Comments »

A comment that is sent to the client in the viewable page source. The JSP engine handles an output comment as un-interpreted 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.

AddThis Social Bookmark Button

What are context initialization parameters?

March 7th, 2007 Admin Posted in JSP(Java Server Pages) No Comments »

Context initialization parameters are specified by the <context-param> in the web.xml file, these are initialization parameter for the whole application and not specific to any servlet or JSP.

AddThis Social Bookmark Button

What is a translation unit?

March 7th, 2007 Admin Posted in JSP(Java Server Pages) No Comments »

JSP page can include the contents of other HTML pages or other JSP files. This is done by using the include directive. When the JSP engine is presented with such a JSP page it is converted to one servlet class and this is called a translation unit, Things to remember in a translation unit is that page directives affect the whole unit, one variable declaration cannot occur in the same unit more than once, the standard action jsp:useBean cannot declare the same bean twice in one unit.

AddThis Social Bookmark Button