aspose file tools
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 The Software Craftsman this week in the Agile 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).]
It is sorta covered in the JavaRanch Style Guide.
subject: Response and Request