request.getParameter & request.getAttribute
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Ashwin_Kondhalkar
Posted On:   Thursday, January 13, 2005 09:24 AM

Hi,

I need to understand the difference between request.getParameter and request.getAttribute, can anyone shed some light on this??
When should we use getParameter and getAttribute??

Cheers
Ashwin

Re: request.getParameter & request.getAttribute

Posted By:   rajesh_radhakrishnan  
Posted On:   Friday, January 14, 2005 03:40 AM

request.getParameter

in this case it returns a String and this is use when we want to retrieve some thing from query string or posted data.

request.getAttribute

in this case it returns an object and in this case it embed the value into the request object.

rajesh radhakrishnan

rajeshr@sapo.pt
About | Sitemap | Contact