-
-
-
-
-
-
-
Restrict JSP page errors
How do you restrict page errors display in the JSP page.
-
How does a servlet communicate with a JSP page?
The following code snippet shows how a servlet instantiates a bean and initializes it with FORM data posted by a browser. The bean is then placed into the request, and the call is then forwarded to the JSP page, Bean1.jsp, by means of a request dispatcher for downstream processing.public void doPost (HttpServletRequest request, HttpServletResponse response){try {govi.FormBean f = new govi.FormBean();String...
-
-
Which tag in the jsp is used to define the error page. (Multiple choice)
Skill/Topic: Programming ConstructsA) None of the above B) C)
-
The tag %@include file=”.........” % > helps in including the ______ file in the JSP page (Multiple choice)
Skill/Topic: Programming ConstructsA) readOnlyB) dynamicC) staticD) None of the above
-
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
-
The jsp:useBean attribute is used to indicate the Serialized bean
Skill/Topic: Programming ConstructsA) TrueB) False
-
-
Find the number of Visitors
How we can find the number of visitors in a given site?How to find the count of number of hits to a particular page irrespective of user?
-
The session tracking in the JSP can be done by :- 1. URL rewriting 2. Cookies 3. User-Authorization 4. Hidden Files
Skill/Topic: Session HandlingA) 1,3,4 only B) 2,3,4 only C) 1,2,4 only D) 1,2,3,4
-
State true or false -- ServletContext class gives information about the Request?
Skill/Topic: Programming ConstructsA) TrueB) FalseExplanation: ServletContext: Gives the information about the container. PageContext: Gives the information about the Request
-
-
The ________ listeners are notified when session objects are created, invalidated, or timed out.
Skill/Topic: JSP Thread ModelA) Session AttributeB) Servlet context attributeC) Session ListenersD) Servlet context listeners
-
JSP Interview Questions
Ans