Question ID :997967667647
For the
JSP scopes of request and page, what type of object is used to store the attributes?
1. HttpServletRequest and ServletContext respectively
2. ServletRequest and ServletConfig respectively
3. ServletRequest and PageContext respectively
4. HttpServletRequest and PageContext respectively
5. ServletConfig for both
I would say (Http)ServletRequest and Object respectively, but the answer is 3?? In Manning's study kit, it states that the implicit variables are of type/class:
application: ServletContext
session: HttpSessoin
request: HttpServletRequest
response: HttpServletResponse
out: JspWriter
page: Object
pageContext: PageContext
config: ServletConfig
exception: Throwable
Any thoughts?
Thanks,
-yu chen