-
-
-
Which of the following statement is true for the include directive (Multiple choice)
Skill/Topic: Programming ConstructsA) Can be used to incorporate contents from static documents B) It offers option of sharing local variables and better run time efficiencyC) Provides benefit of automatic recompilation. D) It is processed during translation and compilation and does not impose any restrictions on output buffering
-
Java Server Pages technology commonly called JSP technology offers the following advantages(Multiple choice) :-
Skill/Topic: FundamentalsA) Separation of dynamic and static content. B) Support for scripting and tags C) Reuse of components and tags. D) Web access layer for N-tier enterprise application architecture
-
These ______________listeners are notified when attributes are added to, removed from, or replaced in any session.
Skill/Topic: JSP Thread ModelA) Session AttributeB) Servlet context attributeC) Session ListenersD) Servlet context listeners
-
-
-
-
-
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:<%@...
-
-
Can I call an interface in a JSP?
Pls comment
-
-
-
Which of the tag contains a code fragment valid in the page scripting language.
Skill/Topic: Programming ConstructsA) B) C) D)
-
The response.sendRedirect("……..”); is the response implicit object to redirect the browser to the different resource
Skill/Topic: Programming ConstructsA) TrueB) False
-
To show money format on the JSP page we use __________ class
Skill/Topic: Programming ConstructsA) AirthmaticFormat B) CurrencyFormat C) NumberFormat D) StringBuffer
-
Under JSP 1.0 , the implicit object which can be used for reference is “this”. It is used to refer to the ______________
Skill/Topic: FundamentalsA) Servlet generated by the JSP page B) Servlet called by the jsp page C) Calling the previous JSP page D) None of the above
-
Which of the following are the implicit objects in JSP 1. Application, out 2. config, exception 3. page, pageContext 4. request, response, session
Skill/Topic: FundamentalsA) 1, 2 B) 2, 3 C) 2, 3, 4 D) 1, 2, 3, 4
-
JSP technology is extensible
Skill/Topic: FundamentalsA) TrueB) FalseExplanation: JSP technology is extensible through the development of custom actions, or tags, which are encapsulated in tag libraries.
JSP Interview Questions
Ans