-
Avoid Application Execution
How to avoid execution of one web application in IE or Mozilla?
-
How do I have the JSP-generated servlet subclass my own custom servlet class, instead of the default?
One should be very careful when having JSP pages extend custom servlet classes as opposed to the default one generated by the JSP engine. In doing so, you may lose out on any advanced optimization that may be provided by the JSPengine. In any case, your new superclass has to fulfill the contract with the JSPngine by: Implementing the HttpJspPage interface, if the protocol used is HTTP, or implementing...
-
-
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
-
Manage Cookies
How to manage cookies in JavaScript?
-
-
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 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
-
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?
-
-
Lock Text Box
How to lock the text box using script?
-
The jsp:useBean attribute is used to indicate the Serialized bean
Skill/Topic: Programming ConstructsA) TrueB) False
-
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 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 tag in the jsp is used to define the error page. (Multiple choice)
Skill/Topic: Programming ConstructsA) None of the above B) C)
-
-
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...
-
Restrict JSP page errors
How do you restrict page errors display in the JSP page.
-
-
JSP Interview Questions
Ans