Once I submit it parameters are sending to the server, then it responds back to me with parameters that I have to save in variable.
I am new in servlet theme, please advise how to organize servlet in such case?
none not wrote: Once I submit it parameters are sending to the server, then it responds back to me with parameters that I have to save in variable.
Not sure I understand what you are trying to achieve here. What do you want to do with the submitted form variables? Do you want to perform some sort of server side validations against the DB values? Or do you want to do some custom validations in the Servlet itself like Pattern matching etc.? Can you please explain the use case in detail?
I'm trying to test PayPal integration using NVP.
Once I submit my form I send credentials in name-value pair way to PayPal test server then it checks my credentials and respond to me with the string like
(string appears in my browser)
from this string I should get TOKEN parameter and place it in variable to process next operations.
Have you read and understood the steps for URLDecoding mentioned in this document. It seems that is what you want to accomplish, decode the URL and retrieve the TOKEN that the PayPal server sent to your request to further your transactions.