This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes JNLP and Web Start and the fly likes Passing parameters to jApplet Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JNLP and Web Start
Reply Bookmark "Passing parameters to jApplet" Watch "Passing parameters to jApplet" New topic
Author

Passing parameters to jApplet

Jesse Miller
Ranch Hand

Joined: Apr 05, 2010
Posts: 37
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
Bartender

Joined: Oct 14, 2005
Posts: 16487
    
    2

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

Joined: Apr 05, 2010
Posts: 37
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?
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Passing parameters to jApplet
 
Similar Threads
JavaScript and JApplet
Applet ActiveX Bridge?
Diff Between Applet and JApplet??
Applet an application
Applet and XML Doc through a browser