-
-
-
-
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.
-
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.
-
-
-
-
-
-
-
-
-
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
-
-
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.
-
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
-
-
-
JSP Interview Questions
Ans