It appears that the name of a parameter to an applet (as in <PARAM
NAME=foo value=bar>) must be lower case in order for getParameter() to
pick up its value.
Assume a document containing
<APPLET ...><PARAM NAME=startup VALUE="a bunch of text"></APPLET>
We run it through the AppletViewer. In the applet's init() method,
getParameter("STARTUP") and getParameter("startup") both return "a
bunch of text".
But if the document contains
<APPLET ...><PARAM NAME=STARTUP VALUE="a bunch of text"></APPLET>
then both getParameter("STARTUP") and getParameter("startup") return null.
Is this a problem with the DTD, or should it be documented to work this way?
NAME=foo value=bar>) must be lower case in order for getParameter() to
pick up its value.
Assume a document containing
<APPLET ...><PARAM NAME=startup VALUE="a bunch of text"></APPLET>
We run it through the AppletViewer. In the applet's init() method,
getParameter("STARTUP") and getParameter("startup") both return "a
bunch of text".
But if the document contains
<APPLET ...><PARAM NAME=STARTUP VALUE="a bunch of text"></APPLET>
then both getParameter("STARTUP") and getParameter("startup") return null.
Is this a problem with the DTD, or should it be documented to work this way?
- duplicates
-
JDK-1225928 (fp.bugs 2167) APPLET parameters in AppletViewer must be lower case
- Closed