Skip to main content
GameDev.net gamedev.net
🔒 Locked

[java] Passing a parameter to an applet???

Started by Macke Dec 8, 2001 at 4:19 PM 1 replies 500+ views
Original Post
Macke
Macke
I''ve been looking for a good way to get a user written parameter from a site in to an applet that is on the same site. I have looked up a function in the applet clas called getParameter(String s) that gets the value from a tag in the html. But all examples Ive seen has a constant value on the param value like: Havn''t seen anywhere how to get a variable on the value of the param tag. I am just looking for a way that the user can write in the value.
CaptainJester
CaptainJester
Another option is to have a CGI program take the user input and generate an HTML page with the tags for your applet and the parameters.

---
Make it work.
Make it right.
Make it fast.
"None of us learn in a vacuum; we all stand on the shoulders of giants such as Wirth and Knuth and thousands of others. Lend your shoulders to building the future!" - Michael Abrash[JavaGaming.org][The Java Tutorial][Slick][LWJGL][

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.