-
Fill in the blanks -- The maximum age of the cookie in JSP can be set by _________________
Skill/Topic: JSP Life CycleA) cookie.setMaxAge(int seconds)B) cookie.setMaxAge(float seconds)C) cookie.setAgeMax (float seconds)D) cookie.setAgeMax (int seconds)
-
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 statement is true about Servlet chaining (Multiple choice)
Skill/Topic: ServletsA) It is the process of chaining the output of one Servlet to the anotherB) Need to do special configuration in the Java Web servers for this process to run.C) This concept has been removed from the standard application for servlets.D) None of the above
-
The following is the sequence of the life cycle of the servlets1. init()2. destroy()3. service()
Skill/Topic: ServletsA) 1,2,3B) 1,3,2C) 2,3,1D) 1,3,2
-
-
-
-
What is purpose of jsp forward method
A.forward control to another resource available in the same web application on different containerb.forward control to another resource available in the diff web application on different containerc.forward control to another resource available in the same web application on same containerd.forward control to another resource available in the diff web application on same container
-
-
-
-
-
-
-
-
-
-
-
-
How does JSP handle run-time exceptions?
You can use the errorPage attribute of the page directive to have uncaught runtime exceptions automatically forwarded to an error processing page. For example:<%@ page errorPage="error.jsp" %>redirects the browser to the JSP page error.jsp if an uncaught exception is encountered during request processing. Within error.jsp, if you indicate that it is an error-processing page, via the directive:<%@...
JSP Interview Questions
Ans