Review Questions

http://www.smart-soft.com

1: What method is used to access a request parameter from a servelt?   Answer

2: If request.getParameter("inches") is invoked and there is NO "inches" parameter, what does getParameter("inches") return?   Answer

3: If request.getParameter("inches") is invoked and there IS an "inches" parameter (from an html form) but the user left it blank, what does getParameter("inches") return?   Answer

4: Can you have two request parameters with the same name?   Answer

5: How does one access multiple parameters with the same name from a servlet?   Answer

6: What is the return type of the above mentioned method?   Answer

7: Name an HTML form element that commonly returns mutiple parameters with the same name?   Answer