Link to home
Start Free TrialLog in
Avatar of rajneetbhatia
rajneetbhatia

asked on

Get queryString using post method

If form method is kept as get, my problem at java servlet path is over, as i am able to get querystring. But due to some architecture problem, it is not feasible to make form method as get. So, how can I retrieve the same querystring using post method.
Avatar of Mick Barry
Mick Barry
Flag of Australia image

you can access the passed parameters in the same way regardless of whether it is GET or POST
why do u need the query string exactly?
eg.

String value = request.getParameter("paramname");
If you need the query string then build it yourself

String queryString = "a="+request.getParameter("a")+"&b="+request.getParameter("b");  // add others as needed

ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
:-)