Invalid parameter.

What is wrong in these Applet tags >>>>>>>>>>>>

<APPLET codebase="file:/home/lando/JavaProject5/build/classes/" code="TVApplet.class"

param name=file value="calcioMO.avi"

width=350 height=200

></APPLET>

++++++++++++++++++++++++++++++++++++++++++++++*

Applet code >>>>>>>>>>>>>

URL codeBase = getDocumentBase();

System.out.println("codebase> " + codeBase); <<<<<>>>>> ADDED TO TRACE CODEBASE

if ((mediaFile = getParameter("FILE")) == null)

System.out.println("mediafile> "+ mediaFile); <<< >>>>ADDED TO TRACE MEDIAFILE

Fatal("Invalid media file parameter");

++++++++++++++++++++++++++++++++++++++++++++++++

data TRACED by my System.out.println >>>>>>>>>

codebase> file:/home/lando/JavaProject5/build/TVApplet.html

mediafile> null

I get messages below >>>>>>>>>>

FATAL ERROR: Invalid media file parameter

java.lang.Error: Invalid media file parameter

Many thanks.

Message was edited by:

DEV_FORUM_Screen

Message was edited by:

DEV_FORUM_Screen

[1298 byte] By [DEV_FORUM_Screena] at [2007-10-3 3:32:31]
# 1
Shouldn't the param tag be enclosed by the applet tag?
CeciNEstPasUnProgrammeura at 2007-7-14 21:26:46 > top of Java-index,Java Essentials,New To Java...
# 2
Crosspost!
PhHeina at 2007-7-14 21:26:46 > top of Java-index,Java Essentials,New To Java...
# 3

Re: Invalid parameter.

CeciNEstPasUnProgrammeur Registered: Jul 23, 2002 1:00 AM Aug 25, 2006 2:44 AM

Shouldn't the param tag be enclosed by the applet tag?

It is enclosed.....what do you mean ?

<APPLET codebase="file:/home/lando/JavaProject5/build/classes/" code="TVApplet.class"

param name=file value="calcioMO.avi"

width=350 height=200

></APPLET>

DEV_FORUM_Screena at 2007-7-14 21:26:46 > top of Java-index,Java Essentials,New To Java...