Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Response and Request

 
Bryce Webster
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1467
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic