I am posting some values to a url and i am getting the return values also.Now i need to read the returned values from the browser.Is it possible? how can i do this? I am getting the following values in the return url:
I want to read these valued from the browser and have to upload it in the database. Please assist me to read this.
In that case this thread should be moved to the Servlets forum.
mohamed sanaullah wrote:I believe that you are using the Servlets. . .
preethi Ayyappan wrote:Thanks mohamed, I am using spring framework and when i tried to get the datas from the url using request.getParameter , i am getting the values of the datas whatever i have posted and not the datas what is returned in the url.
You can try using: getQueryString() method of request object. Though I dont know how it is in Spring framework.
I am posting the code i have tried.
The controller is:
The output is :
Am i wrong anywhere?Please assist me
Can you please clearly explain us what you are trying to do, because onload of the jsp itself, you are submitting the form..
There are several possibilities to accomplish what you are trying to do. One is to first send your form using AJAX to the third party site and then read the resposnse back to your form and after that do the actual sending of the form to your own server. And other possibility would be to just send the form to your server and then let the server resend the values to the third party server and then read the response back at your own server. The last one of these is a more secure way since if you just trust that the client side is not going to modify the results (between the ajax send and the actuals send to your server) then you may get in to a big problem in the future.