|
-
Aug 16th, 2003, 01:38 PM
#1
Thread Starter
Member
Retrieving URL Query String
How do I retrieve URL query values in Java?
Keep in mind that javax.servlet.http.HttpUtils is no longer useable in Java (deprecated).
-
Aug 18th, 2003, 05:14 AM
#2
You mean the part after '?'?
URL.getQuery and parse.
Servlets have all values already stored somewhere.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Aug 27th, 2003, 01:11 PM
#3
Thread Starter
Member
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?
-
Aug 27th, 2003, 04:58 PM
#4
Thread Starter
Member
Isn't there anyway to get data from an HTML form into a Java Applet on another page?!?
-
Aug 28th, 2003, 01:48 AM
#5
Told you. Use StringTokenizer to parse it yourself. It's not really hard, the hardest part is are the % replacements.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|