No , they are not the same getAttributeNames return a list of available attributes in the servlet context getParameterNames return a list of all the parameters (the one in past in the URL) to the servlet for more details, refer to the J2EE documentaion. and search for the two methods above.
A Software life cycle can be greater than its Developer's
Ram Dhan Yadav K
posted 18 years ago
Hi Maitham, I don't think attributes available through HttpServletRequest has anythig to do with servlet context. What i observed is that setAttribute() and getAttribute() available in HttpServletRequest is a way of passing objects via. a request while dispatching/forwarding the request to other servlets or web components. I guess with this functionality we can reduce the burdon on session by not overloading them with lots of objects. Correct me if i am wrong! thanks, Ram Dhan Yadav K
Ram Dhan Yadav (SCJP, SCWCD, SCJA-I, IBM EC(483))
"We are what we repeatedly do. Excellence, then, is not an act, but a habit."
There are 29 Knuts in one Sickle, and 17 Sickles make up a Galleon. 42 tiny ads in a knut:
Devious Experiments for a Truly Passive Greenhouse!