servlets - Get the HttpServletRequest (request) object from Java code -
I have to capture the request object in java code. I can not extract my object in my code for some reasons. Is there any way I can say something: getCurrentHTTPServletRequest
?
It is safe for me to believe that I am in a service context.
Well you should require it below if you need it It's basically anything that you do will be ugly.
You can use
However, I strongly advise you to clarify your dependence on strongly . Either enter the servlet request below, or just the bits you need.
Comments
Post a Comment