Review Questions

http://www.smart-soft.com

1: Conceptually, JSP scriplet code, when translated into a servlet, will end up in the body of what method?   Answer

2: Conceptually, JSP expression code, when translated into a servlet, will end up in the body of what method?   Answer

3: From JSP, if you want to place code outside of the doGet and doPost methods but still inside the servlet class, what JSP tag would you use?   Answer

4: What types of things would be declared in a declaration tag?   Answer

5: A variable declared inside of scriptlet would most likely translate to a local variable or an instance variable?   Answer

6: A variable declared inside of a declaration tag would most likely translate to a local variable or an instance variable?   Answer

7: The JSP equivalent of Servlet.init() is called:   Answer

8: The JSP equivalent of Servlet.destroy() is called:   Answer

9: The above 2 methods would be placed inside of what JSP tag?   Answer