I think it is the ServletRequest class object which is used to store attributes in request scope. I refer to the following context from SCWCD Kit Book, Section 12.3, pg218.
Data is shared between servlets using the three container objects, ServletContext, HttpSession and ServletRequest. The JSP technology, since it is based on servlet technology, also uses the three scopes, which are referred to in JSP pages as application, session and request scopes.
Any verification on this matter is welcome. Thambi
As per JSP 1.1 Specs 3.2.2 The request and response interfaces together describe a protocol-dependent contract between the JSP container and the class that implements the JSP page. The contract for HTTP is defined by the javax.servlet.http.HttpServletRequest and javax.servlet.http.HttpServletResponse interfaces. So It should be of type HttpServletRequest.
Nazmul Huda Sarkar
Joined: Feb 01, 2002
Yessssss Ashish Kurmi....I'm 100% with u.....If anyone see the converted servletJava file in work folder, u will find that the signature of service method is : public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException
But, ofcourse HttpServletRequest is a subclass of ServletRequest [ September 25, 2002: Message edited by: Nazmul Huda Sarkar ]
Yes it is ServletRequest. HttpServletRequest inherits the method set/getAttribute() from ServletRequest, which is why so many of my fellow coyboys are confused. from J2EE 1.3 API javax.servlet.ServletRequest java.lang.Object getAttribute(java.lang.String name) Returns the value of the named attribute as an Object, or null if no attribute of the given name exists. Hope this resolves the issue. Thomas [ October 04, 2002: Message edited by: Thomas Hubschman ]