File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Response and Request Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Response and Request" Watch "Response and Request" New topic

Response and Request

Bryce Webster

Joined: Apr 04, 2001
Posts: 3
Is there any way to get the contents of the request and response objects from a bean without passing them in explicitly? I jave a jsp file using a taglib to call into a bean which hen needs HttpServletResponse and HttpServletRequest as parameters to one of its methods called in another jar file. The taglib doesn't appear to like having the response or request passed in as attributes.
Thanks in advance.
maha anna
Ranch Hand

Joined: Jan 31, 2000
Posts: 1467
Write a Java Bean which has private vars of type HTTPServletRequest, HTTPServletResponse and pass this bean.
import java.servlet.*;
import java.servlet.http.*;

maha anna
[This message has been edited by maha anna (edited April 05, 2001).]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Response and Request
Similar Threads
please solve this EL
Cannot display ActionMessages
java.lang.NullPointerException in a simple servlet
struts forward link?
servlet action is not available