hi, i am unable to find a decent approach for this problem. i want to add a new paramter to my request and pass it to a class.. not a servlet. how do i do it? Please help me sought this problem immediately.. Thanx Chhaya
a class cannot get the HttpRequest object directly. it has to be passed from the servlet. so if u want to send some object to the class use the request.setAttribute() and then pass it to the class
Thanks<br /> <br />Kiran <br /> <br />SCEA, SCJP 1.4,<br /> <br />"First they ignore u, then they laugh at u, then they fight u, <br />then u will win<br /> <br />Mahatma Gandhi"
In Servlet2.2 the only way to mutate the HttpRequest is to use the setAttribute method. However, in Servlet2.3, you can use the HttpServletRequestWrapper (I believe thats the correct class name) to wrap the request which allows you to basically mutate (lie) about the http request.