File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JNLP and Web Start and the fly likes Passing parameters to jApplet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Passing parameters to jApplet" Watch "Passing parameters to jApplet" New topic

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

Joined: Oct 14, 2005
Posts: 19973

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:
subject: Passing parameters to jApplet
It's not a secret anymore!