I want to know if there is a way to get the HttpServletRequest from the jsp implicit object response.Note: I don't want to use the jsp implicit object request I need the one inside the response. Thanks on advance.
Asked
Active
Viewed 449 times
0
-
5Why do you think there is a different request in response? – Krzysztof Krasoń Jun 15 '16 at 20:13
-
Where do you have HttpServletRequest in response? I have none on HttpServletResponse. – Michal Jun 15 '16 at 20:17
-
@kzyk I think that there is a difference because the id is different and the data is different. On the browser before Submit the form the plain request has all the data, but once the form is submitted `gatein` request has no data and the same id as the response>request. I was thinking to get a hold of the response>request and set that data there. – acardoso Jun 15 '16 at 20:22
-
@Michal When i debug my jsp i can see that inside implicit object response there is a request. – acardoso Jun 15 '16 at 20:25
-
1If you see the object in debugger why do not you simply use it? But be aware that if you do so the jsp page will not be portable. There is NO request on response interface (HttpServletResponse). – Michal Jun 15 '16 at 20:30
-
@Michal Yeah i dont see a way to use in the [documentation](http://docs.oracle.com/javaee/6/api/javax/servlet/http/HttpServletResponse.html) but some how I can see on the debugger. – acardoso Jun 15 '16 at 20:36
-
@acardoso - I cannot follow what you have written to kzyk. Maybe you try to re-formulate the question in a way that we see what would you like to achieve? – Michal Jun 15 '16 at 20:36
-
What do you do if you move your jsp into another container and there is no request inside the response? – Michal Jun 15 '16 at 20:48
-
2Request is what comes in. Response is what you send out. How could there be a request in the response? Doesn't even make sense. – developerwjk Jun 15 '16 at 21:23
-
1And how could there possibly be *two*, different, requests at the same time? Your question doesn't make any sense. – user207421 Jun 16 '16 at 00:05
-
I wish i could paste a screen shot of my variables here. But you guys are right. I am still confuse for that request. Thanks all. – acardoso Jun 16 '16 at 12:55