Possible Duplicate:
Parsing query strings in Java
PHP has parse_str()
, is there an equivalent function that does the same thing in java?
Possible Duplicate:
Parsing query strings in Java
PHP has parse_str()
, is there an equivalent function that does the same thing in java?
PHPs parse_str
has two modes of operation:
parse_str
will set parameters as variables in the current scope. For this mode of operation, there is no equivalent in Java.You can use the ServletRequest
object's getParameter
method. http://download.oracle.com/javaee/6/api/javax/servlet/ServletRequest.html)