-
Arrange the lifecycle phases of JSP in correct order1. Page translation: -page is parsed, and a java file which is a Servlet is created. 2. Page compilation: page is compiled into a class file 3. Page loading : This class file is loaded. 4. Create an instance :- Instance of Servlet is created 5. jspInit() method is called 6. _jspService is called to handle service calls 7. _jspDestroy is called to destroy it when the Servlet is not required.
Skill/Topic: JSP Life CycleA) 1,2,3,4,5,6,7B) 1,4,3,2,5,6,7C) 3,2,1,4,5,6,7D) 4,5,3,6,2,7,1
-
-
-
-
-
-
-
-
-
-
The _________interface provides information to servlets regarding the environment in which they are running.
Skill/Topic: ServletsA) ServletContextExplanation: It also provides standard way for servlets to write events to a log file.
-
When a servlet accepts a call from a client, it receives two objects. What are they?
ServeltRequest: which encapsulates the communication from the client to the server.ServletResponse: which encapsulates the communication from the servlet back to the client.ServletRequest and ServletResponse are interfaces defined by the javax.servlet package.
-
-
-
-
What is the need of taglibraries?
Answer the question.....
-
-
Which of the following statements is true about the GenericServlet. (Multiple choice)
Skill/Topic: ServletsA) GenericServlet is for servlets that might not use HTTP, like for instance FTP service.B) As of only Http is implemented completely in GenericServlet. C) The GenericServlet has a service() method that gets called when a client request is made. D) GenericServlet is called by both incoming requests and the HTTP requests are given to the servlet as they are.
-
The wrapper function like <%! String blanknull(String s) { return (s == null) ? "" : s; } %> then use it inside your JSP form, like <input type="text" name="shoesize" value="<%=blanknull(shoesize)% >" > prevents the word__________ from apperaring in an HTML page.
Skill/Topic: Programming ConstructsA) Null
-
JSP Interview Questions
Ans