This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android forum!
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).]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Response and Request
 
Similar Threads
Cannot display ActionMessages
servlet action is not available
please solve this EL
java.lang.NullPointerException in a simple servlet
struts forward link?