-
-
-
-
-
What is the difference between GenericServlet and HttpServlet?
GenericServlet is for servlets that might not use HTTP, like for instance FTP service.As of only Http is implemented completely in HttpServlet. The GenericServlet has a service() method that gets called when a client request is made. This means that it gets called by both incoming requests and the HTTP requests are given to the servlet as they are.[qu]What are the differences between GET and POST service...
-
-
-
-
The mails can be send from the Servlet by the usage of the following :-
Skill/Topic: ServletsA) Simple Mail Transfer Protocol (SMTP) implementation in Java.B) Java Mail APIC) Both a and bD) Neither a and b
-
-
-
Which of the following is true (Multiple choice)
Skill/Topic: FundamentalsA) out class refers to the output stream for the http page B) page class refers to the page Servlet interface C) pageContext refers to the pages Servlet interface D) config interface refers to the servlets configuration.
-
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
-
-
-
-
-
-
-
JSP Interview Questions
Ans