I think many people had asked this question but none of the answer satisfy me.

If "http://mysite/dir/website.html?NAME=John" is the URL and website.html has an applet, how could the applet get the value of NAME, which is "John"?

If there is a solution to this, I need to know
1.) What should I do inside the applet in order to get the value?
2.) What should I put inside website.html? Do I need to declare variable NAME inside the <Applet> tag with <Param>?

The purpose of I doing this is to able to pass a user name to the applet so that the applet can decide what to do.

I appreciate the help and thanks!