How to get the current HttpServletResponse in the JBoss 4.2.3.GA login module

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

For the HttpServletRequest I can do:

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

They tried to change the line, but with no luck, an exception was thrown.

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

+4
source share
1 answer

I probably don’t understand this question at all, but if you want to influence the request or response that some other servlet will handle, is it not the ServletFilters function? ServletFilter, superimposed on the servlet that processes the login, has access to both ServletRequest and ServletResponse.

0
source

Source: https://habr.com/ru/post/1334586/


All Articles