views:

50

answers:

1

Hi, How the best way to handle query strings in Java JSP?

The method request.getQueryString() returns only a strings, how can I get the value of a specific string? Should I parse that string?

thanks

+5  A: 
requesst.getParameter("param-name");  

if query String is like

id=12&name=abc  

to get name you can do this

requesst.getParameter("name");  
org.life.java