japplet param
- From: ryanoasis <ryanoasis@xxxxxxxxx>
- Date: 23 Apr 2007 10:31:36 -0700
I am new to Java applets and therefore japplets as well.
I am working on a project that we want to get the params from the page
the applet tag is on. I have looked at
the various examples and they are not working for the application I am
working on however when I make my own
simple sample it works just fine.
This is the error I get when trying it in the project:
java.lang.NullPointerException
at java.applet.Applet.getParameter(Unknown Source)
I have read that the getParameter call should be in init and also in
the default constructor. This doesnt
seem to work however, I have tried the call in many other methods and
also calling it from a seperate class.
String s ="initial";
s = getParameter("asdf");
<param name="asdf" value="hi">
Thanks.
.
- Follow-Ups:
- Re: japplet param
- From: Tom Hawtin
- Re: japplet param
- Prev by Date: Re: Weird Java 6 Double-buffering Problem
- Next by Date: Re: japplet param
- Previous by thread: Netbeans / RCP Question
- Next by thread: Re: japplet param
- Index(es):