Setting parameter in HttpServletRequest
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Abhishek_Goyal
Posted On:   Thursday, May 27, 2004 11:29 PM

How do I set a parameter explicitly in HttpServletRequest object? It does not provide setParameter(String, Object) method unlike HttpRequest. The only method available is setAttribute(String, Object) which I don't want to use as the values are being retrieved through getParameter(String) method in the existing code framework of my project.

Re: Setting parameter in HttpServletRequest

Posted By:   tech_tech  
Posted On:   Saturday, May 29, 2004 12:10 PM

u need to clearly nderstand what comes from client and whats a response and where should u set what variables.
its very important if u want to do some serious coding...

Re: Setting parameter in HttpServletRequest

Posted By:   AlessandroA_Garbagnati  
Posted On:   Friday, May 28, 2004 02:25 AM

Hi,


> It does not provide setParameter(String, Object) method unlike HttpRequest


There is no such class 'HttpRequest' in the javax.servlet.* or even javax.servlet.http.* package.


A request object is an object generated by the Servlet Container with all the infos that are coming from the client. The developer should not directly change this object, and that is why there are no setters.

About | Sitemap | Contact