Skip to main content
gamedev.net
🔒 Locked

[java] JApplet passing parameters

Started by ju2wheels Aug 22, 2005 at 12:47 PM 1 replies 1.9k views
Original Post
ju2wheels
ju2wheels
Ok I know im doing this right but its telling its only partially working. I load my applet in an html file and pass the following params: When I go to get envPropWebPath using getParamter("envPropWebPath") I get a null pointer exception, thus meaning that it cant find the give parameter I assume. I did spell it correctly in both places but its still a no go. Any ideas? I dont assume that there is anything different that needs to be done when you supply more than one parameter is there? I had this working perfectly when I only passed it one parameter...
redmilamber
redmilamber
You're right this SHOULD work

check for:

1. spelling mistakes (HTML doesn't have a compiler ;))
2. HTML mistakes (unclosed tags, unclosed " (quotes), etc - see above point)
ju2wheels
ju2wheels
I figured out the problem. getParameter cant be called from within a constructor or it wont work!!!!! Ive got it working now.

*and i did check the spelling ;-D 50 times....

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.