Doc. HTML 1 Applet Doc HTML 2
<html>
<head>
<title>Passe paramètre 1</title>
</head>
<body>
<
applet CODE="Pass_para.class" WIDTH="300" HEIGHT="60">
<param name="para1" value="1234">
<param name="para2" value="1234+2=1236">
</applet>
</body>
</html>
import java.awt.*;
import java.applet.*;
public class
Pass_para extends Applet {
String
Import;
String
Import2;
int
importint;
    public void paint(Graphics g)   {
       
Import = getParameter("para1");
       
Import2 = getParameter("para2");
       
importint = Integer.parseInt(Import,10);
        importint= importint + 2;
        Import= Integer.toString(
importint,10);      
        g.drawString(Import, 20, 20);
        g.drawString(
Import2, 20, 40);
    }
}   
<html>
<head>
<title>Passe paramètre 2</title>
</head>
<body>
<
applet CODE="Pass_para.class" WIDTH="300" HEIGHT="60">
<param name="para1" value="1
1020">
<param name="para2" value="
test 1 OK">
</applet>
</body>
</html>