Is there a way to find out what parameters have been passed to an applet from the <PARAM> tags of the calling HTML file?
Similar to getting all the command line arguments in a string array ...
Printable View
Is there a way to find out what parameters have been passed to an applet from the <PARAM> tags of the calling HTML file?
Similar to getting all the command line arguments in a string array ...
use the getParameter() method of the Applet class. You need to pass in a String which is the name of the parameter.
:)
That would only give me a single parameter at a time. How do I check all those parameters which the HTML file has given my applet? For e.g. the number of parameters passed? Here if a parameter has an empty string, it would still be counted as a parameter.Quote:
Originally posted by crptcblade
use the getParameter() method of the Applet class. You need to pass in a String which is the name of the parameter.
:)
.