Arrange the lifecycle phases of JSP in correct order1. Page translation: -page is parsed, and a java file which is a Servlet is created. 2. Page compilation: page is compiled into a class file 3. Page loading : This class file is loaded. 4. Create an instance :- Instance of Servlet is created 5. jspInit() method is called 6. _jspService is called to handle service calls 7. _jspDestroy is called to destroy it when the Servlet is not required.
Skill/Topic: JSP Life CycleA) 1,2,3,4,5,6,7B) 1,4,3,2,5,6,7C) 3,2,1,4,5,6,7D) 4,5,3,6,2,7,1
The JspPage interface defines the __________ and ____ method which the page writer can use in their pages and are invoked in much the same manner as the ____ and _____ methods of a servlet.
Skill/Topic: JSP Life CycleA) jspInit(), jspDestroy(), init() , destroy()B) init(),jspDestroy(),jspInit(),destroy()C) destroy(),jspDestroy(),jspInit(),init()D) init(),destroy(),jspInit(), jspDestroy()
Skill/Topic: JSP Life CycleA) Objects with page scope are accessible only within the page where they are created.B) References to objects with page scope are stored in the pagecontext objectC) All references
Skill/Topic: JSP Life CycleA) Objects with request scope are accessible from pages processing the same request where they were created.B) All references to the object shall be released after the request
Which of the following statements is true regarding the scope of the ‘session’ in JSP? (Multiple choice)
Skill/Topic: JSP Life CycleA) Objects with session scope are accessible from pages processing requests that are in the same session as the one in which they were created.B) It is not legal to define an
Which of the following statements is true about the scope of ‘application’ in JSP ? (Multiple choice)
Skill/Topic: JSP Life CycleA) Objects with application scope are accessible from pages processing requests that are in the same application as they one in which they were created. B) All references to
State true or false - There is a limit to the max amount of data that can be stored in the session object ?
Skill/Topic: JSP Life CycleA) TrueB) FalseExplanation: As such there is no limit on the amount of information that can be saved in a Session Object. Only the RAM available on the server machine is the
Skill/Topic: JSP Life CycleA) 4KExplanation: 4096 bytes
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)
Skill/Topic: JSP Life CycleA) cookie.setMaxAge(int seconds)B) cookie.setMaxAge(float seconds)C) cookie.setAgeMax (float seconds)D) cookie.setAgeMax (int seconds)
Latest Answer : A) cookie.setMaxAge(int seconds) ...