How do I retrieve URL query values in Java?
Keep in mind that javax.servlet.http.HttpUtils is no longer useable in Java (deprecated).
Printable View
How do I retrieve URL query values in Java?
Keep in mind that javax.servlet.http.HttpUtils is no longer useable in Java (deprecated).
You mean the part after '?'?
URL.getQuery and parse.
Servlets have all values already stored somewhere.
Ok, let me explain.
I have a JApplet on a webpage. There is data in the URL (query string), how can my JApplet get those values?
Example: "http://webpage.com/myAppletPage.html?param=some_value"
How do I retrieve "some_value" from the query string?
Isn't there anyway to get data from an HTML form into a Java Applet on another page?!? :confused:
Told you. Use StringTokenizer to parse it yourself. It's not really hard, the hardest part is are the % replacements.