I've created an applet with the following set of parameters in the
HTML:
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" id=List
width="950" height="500"
codebase="http://java.sun.com/products/plugin/autodl/jinstall-1_5_0-windows-i586.cab#Versi
on=1,5,0,0">
<PARAM NAME="code" VALUE="list">
<PARAM NAME="id" VALUE="123456789">
<PARAM NAME="year" VALUE="2005">
<COMMENT>
<EMBED type="application/x-java-applet;version=1.5" width="950"
height="500" code="pship_master_list"
pluginspage="http://java.sun.com/j2se/1.5.0/download.html">
<NOEMBED>
No support for JDK 1.5 applets found!
</NOEMBED>
</EMBED>
</COMMENT>
</OBJECT>
in the init method I call getParameter:
year=getParameter("year");
id=getParameter("id");
The getParamter method always returns null.
Any ideas?
Ashish - 20 Jan 2006 12:37 GMT
Hi,
I tried your code. It's working fine and getParameter() is returning
proper value.
Please check your Applet code.
Which JRE version are you using?? Mine is 1.4.2_09.
If still not working, you can send here Applet code also.
regards,
Ashish
dwt - 20 Jan 2006 19:32 GMT
The JRE I'm using is 1.5.0_06.