4

How can I get the current HttpServletResponse in JBoss 4.2.3.GA login module?

For HttpServletRequest I can do:

PolicyContext.getContext("javax.servlet.http.HttpServletRequest");

Have tried changing the string but no luck, an exception is thrown.

Is there any way to get the current HttpServletResponse in JBoss 4.2.3.GA login module?

skaffman
  • 398,947
  • 96
  • 818
  • 769
Jorge Ferreira
  • 96,051
  • 25
  • 122
  • 132

1 Answers1

0

I probably don't understand the question at all, but when you want to affect a request or response that some other Servlet is going to handle, isn't that the function of ServletFilters? A ServletFilter put on the servlet handling the login has access to both the ServletRequest and the ServletResponse.

Bob Kuhar
  • 10,838
  • 11
  • 62
  • 115