It's not a secret anymore!
The moose likes JNLP and Web Start and the fly likes passing parameter from html page to an application 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 parameter from html page to an application" Watch "passing parameter from html page to an application" New topic

passing parameter from html page to an application

praveen benna

Joined: Jul 30, 2004
Posts: 1
The Problem is..
I need to invoke the application thru java webstart(via JNLP file).Now i have an html page which contains a link to trigger the JNLP file and hence the application.Before launching the application i need to vaildate the user.How can i pass these parameters(user name and password) to application so that i can validate before launching the application
parthiban subramaniam
Ranch Hand

Joined: May 15, 2002
Posts: 116
I think your approach is some what not right,
Authenticate the user using jsp or sevlets before he launches your jnlp file,
or authenticate using swing after your gui starts,

placing the user name and password in your html file and passing them as params to your jnlp file is something strange and not well thought out

and more over you cannot pass params to you jnlp file from html, they have to be placed inside your jnlp file

hope that helps


Even crazy and silly looking problems are sometimes real.
saravanan sambandam
Ranch Hand

Joined: Aug 30, 2010
Posts: 42

I gone through some site they said we can able to pass parameter dynamically to your webstart application.
In this case you need to write your .jnlp code in jsp. so that the jsp itself you can set/bind the param.

I am also trying to get result. But i am not getting.

My requirement is - to get client pc information such as ip, ISP location info, broad band speed of client PC.

when my application launched at client end it will collect all the information and send back to servlet.

I don't know how to send back to servlet.

Please let me.

I agree. Here's the link:
subject: passing parameter from html page to an application
It's not a secret anymore!