This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
I'm having a small issue trying to grab a parameter value from a request. I thought it would just as easy as doing request.getParameter("parameter"); but it isn't in this case.
The parameter I'm looking for is stored in the input stream, I've actually iterated through the request inputstream and found the value there, but it's not in the request parameters. To confirm that it's not in there, I've iterated through the request.getParameters() Enumerable.
The input control is a dropdown list on a jsp page. Every time the user changes the selection in that dropdown list the page executes a post back to retrieve the new data to display.
We use Spring security and other Spring features in what I'll call our "Front" web application. The web app is actually more of a multi-tier app when that specific page is reached, because every time the value gets changed in the dropdown list, we really intercept the request in our Front web app and transfer the request to another web farm to get the response object back, well formatted with the appropriate data. In some ways the "Front" web app is behaving like a proxy.
I tried to read the input stream to extract that value, but it messes up the request being proxied to the other web farm. It looks like the input stream cannot be opened anymore after that.
Anyone would have any idea on how to proceed on that one?
In the inputstream of the request or with some http request debugging tool in the webbrowser.
Joined: Oct 29, 2008
Bauke Scholtz wrote:In the inputstream of the request or with some http request debugging tool in the webbrowser.
Here is the content of the http header according to Firebug:
Joined: Oct 08, 2006
With the inputstream of the request I mean the request body, not the request headers.
Joined: Oct 29, 2008
Bauke Scholtz wrote:With the inputstream of the request I mean the request body, not the request headers.
Is it possible that DWR actually modifies the encoding of the inpustream? I believe it serializes the parameters which seems to me like it's modifying to some extent the inputstream format. Any idea if that's true or not and if it is how to go about that?