Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Passing parameters to jApplet

 
Jesse Miller
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a jApplet that I need to pass parameters to. I would like to be able to use something like http://myserver/myapplet.html?params=NAME~John to bring up the applet in my page and pass the NAME parameter to my applet. Is this possible? Thanks
 
Paul Clapham
Sheriff
Posts: 21945
36
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you have something on the server which will, when it sees such a request for an HTML request, produce a modified version of the HTML page with the appropriate <param> tag in it. Usually people would use a JSP or some similar server-side application to do that.
 
Jesse Miller
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I cant create a custom HTML file on request. My applet is embedded inside a page with a large amount of external headers, footers and navigation panels that I cant really duplicate with my JSP. But can I create a custom JNLP and simply reference that from the HTML? Ideas?
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!