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
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."
Stop it! You're embarassing me! And you are embarrassing this tiny ad!
Free, earth friendly heat - from the CodeRanch trailboss