Professional Documents
Culture Documents
Short Qs
Ans 1:
Ans 2:
The life cycle of a JSP page can be divided into the following
phase: Translation Phase. Compilation Phase. Initialization Phase.
A Java servlet file is generated from a JSP source file. This is the first step
of JSP life cycle. In translation phase, container validates the syntactic
correctness of JSP page and tag files.
Web Container translates JSP code into a servlet class source(. java) file,
then compiles that into a java servlet class. In the third step, the servlet
class bytecode is loaded using classloader.
Ans 3:
Ans 4:
Ans 5:
Ans 6:
Ans 7:
Ans 8:
Ans 9:
Ans 10:
The values of the numeric status code to HTTP requests are as
follows. The data sections of messages Error, Forward and redirection
responses may be used to contain human-readable diagnostic information.
Success 2xx
These codes indicate success. The body section if present is the object
returned by the request. It is a MIME format object. It is in MIME
format, and may only be in text/plain, text/html or one fo the formats
specified as acceptable in the request.