-
What are the advantages using servlets than using CGI?
Servlets provide a way to generate dynamic documents that is both easier to write and faster to run. It is efficient, convenient, powerful, portable, secure and inexpensive. Servlets also address the problem of doing server-side programming with platform-specific APIs. They are developed with Java Servlet API, a standard Java extension.
-
-
-
Fill with the appropriate set -- The browsers are only required to accept________ cookies per site, __________ total per user , and they can limit each cookie's size to __________.
Skill/Topic: JSP Life CycleA) 20, 300, 4096 bytes (4K)B) 300,20, 4096 bytes (4K)C) 30,200, 4096 bytes (4K)D) 200,39, 4096 bytes (4K)
-
The______________ listeners are notified when attributes are added to, removed from, or replaced in the Servlet context.
Skill/Topic: JSP Thread ModelA) Session AttributeB) Servlet context attributeC) Session ListenersD) Session context Listeners
-
-
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
-
If you want a servlet to take the same action for both GET and POST request, what should you do?
Simply have doGet call doPost, or vice versa.
-
-
-
-
-
-
Some Operating Systems have a limitation on the Max Length of the URL, which are normally _______ characters.
Skill/Topic: JSP ConnectionsA) 255 B) 225 C) 264 D) 250
-
-
Which of the following statements is true about the ServletInterface ? (Multiple choice)
Skill/Topic: ServletsA) The central abstraction in the Servlet API is the Servlet interface. B) All Servlet implement this interface, either directly or, more commonly, by extending a class that implements it such as HttpServlet.Servlets > Generic Servlet > HttpServlet > MyServlet.C) The Servlet interface declares, but does not implement, methods that manage the Servlet and its communications with...
-
-
-
-
JSP Interview Questions
Ans