This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I'm new to the java web start functionality. I set up a simple application and used the sample JnlpDownloadServlet to kick it off and everything works just fine. But here's my problem, I have a web page that is generated dynamically based on user input. I want the identifying piece of information that is used to generate the web page be made available to the java application when it is kicked-off. I don't see anywhere to pass along a query string that's generated in the web page. I've searched these forums and the web in general and haven't gotten much. This usually means I'm missing something simple. I guess I could recreate the JnlpDownloadServlet so that it does what I want, but I was hoping not to write a bunch of code to do this, I mean it seems like it should be a feature. I'm using Java 1.5 with weblogic 10, any suggestions and/or comments are always welcomed and appreciated. Even if you don't have an answer, a good comment and lead to a solution.
One possible solution for your problem is
1) Accept all the information required from the user
2) Use a servlet to dynamically generate a JNLP file, which includes this acquired information.
3) Provide the user a link to this file.
4) Code your application to retrieve the properties from the jnlp and use them.
PS. You will have to sign the jar and ensure you have proper permissions in the JNLP for this to work.