scheenstra
Programmer
I'm writing an applet and want to pass an array through an html applet tag. I've done so before with normal variable by doing this.
<APPLET
code = "Lams1.class"
width = "500"
height = "300"
>
<param name = DemandMin value=99>
</APPLET>
and then using a try-catch block like this,
String goget;
goget = getParameter("DemandMin"
;
try {
if (goget != null) // if found
demandmin = Double.valueOf(goget).doubleValue();
else
demandmin = -2;
}
catch(NumberFormatException e) {
demandmin = -3;
}
What would I need to change in order to pass an array of doubles' instead of just one. Thanks in advance for all the help, it's really appreciated. --Alan
<APPLET
code = "Lams1.class"
width = "500"
height = "300"
>
<param name = DemandMin value=99>
</APPLET>
and then using a try-catch block like this,
String goget;
goget = getParameter("DemandMin"
try {
if (goget != null) // if found
demandmin = Double.valueOf(goget).doubleValue();
else
demandmin = -2;
}
catch(NumberFormatException e) {
demandmin = -3;
}
What would I need to change in order to pass an array of doubles' instead of just one. Thanks in advance for all the help, it's really appreciated. --Alan