wood burning stoves 2.0*
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "Response and Request" Watch "Response and Request" New topic
Author

Response and Request

Bryce Webster
Greenhorn

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.
Bryce
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.io.*;
import java.servlet.*;
import java.servlet.http.*;

regds
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