Author Topic: Eclipse - How to load parameters from the <param> tag in HTML files  (Read 5080 times)

0 Members and 1 Guest are viewing this topic.

Offline m0l0ko

  • Peasant
  • *
  • Posts: 129
  • Cookies: -4
    • View Profile
If I have a HTML file:
Code: [Select]
<applet code="MyApplet.class" width="300" height="100">
  <param name="parameter1" value="whatever">
</applet>

Then I can usually get the value of the <param> tag by using getParameter("parameter1") but if I test the applet in eclipse, it doesn't load the param value, which makes sense because I haven't even told it where the HTML file containing the param tag is. How can I get eclipse to load the HTML file when it runs an applet?

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: Eclipse - How to load parameters from the <param> tag in HTML files
« Reply #1 on: December 21, 2012, 10:10:49 am »
You're doing it wrong.
HTML's param tag is when you load the applet from the HTML, duh.
To pass parameters in the IDE, go to
Run -> Run configurations -> select your projects -> open Arguments tab -> put whatever arguments in there