I have an application where I need to send the values from java applet code to html page. Please help me to send the values from java code to HTML page(may be using javascript) My java code is,
public class Calc extends Applet
{
public int tot = 0;
public void paint(Graphics g)
{
int M1 = Integer.parseInt(this.getParameter("m1"));
int M2 = Integer.parseInt(this.getParameter("m2"));
int M3 = Integer.parseInt(this.getParameter("m3"));
int M4 = Integer.parseInt(this.getParameter("m4"));
int M5 = Integer.parseInt(this.getParameter("m5"));
int M6 = Integer.parseInt(this.getParameter("m6"));
tot=M1+M2+M3+M4+M5+M6;
this.setParameter("tot",Integer.toString(tot));
g.drawString(Integer.toString(tot), 10, 10);
}
}