- 1). Create an HTML file for a desired task and add the PARAM code, with the required values, to the HTML file. Use this syntax code to pass the parameters to the applet: <PARAM NAME=param_name VALUE=param_value>. In the syntax code provided, the param_name and param_value are the parameters passed to the applet. The PARAM code portion is placed between the <APPLET> and </APPLET> tag of an HTML file. Parameter names are case sensitive when passing parameters to applets.
- 2). Create an applet and add the required code"to the applet to retrieve the desired parameter values. Use the syntax code below to retrieve parameter values. String getParameter (String name). This syntax code is referred to as the getParameter method. This particular function is usually called in the applet's init method. Parameter values are converted to strings when passed to applets.
- 3). Test the HTML file and the applet you created to make sure that the code is working correctly and produces the desired results.
previous post