Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / January 2006

Tip: Looking for answers? Try searching our database.

Applet param returning null with Java 1.5

Thread view: 
dwt - 19 Jan 2006 16:17 GMT
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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.