Dynamic JNLP creation through servlet

We can create dynamic image files using servlets. (The file does not exists and we create it through strams). There are many examples of that for charts, diagrams.

I want to have dynamically created JNLP file, which is not generated physically on the server side.
When the user visits the link, the JNLP will be dynamically generated and will be run automatically without prompting the user with SaveAs. Is that possible?
iasrdAsked:
Who is Participating?
 
CEHJCommented:
Why JNLP? That's for specifying Java Web Start applications
0
 
iasrdAuthor Commented:
I know.
My JNLP's will have dynamic content each time and they should be volatile. (They wont be stored statically on the server.) The user will open some web page, will do some actions and each time a new jnlp will be generated for this user with some dynamic parameters. Each generated jnlp will be different.
For example it will store browser session ids, random generated key values etc. They will only be able for short periods. They paramerets will be used only once and they will be thrown away after the usage. The user will use this jnlp and this jnlp will not be used any more.
I do not want to generate a file each time and i want that the generated jnlps will not be used anymore.
The user will be unaware of the content of that. (security reasons).
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
CEHJCommented:
The jnlp will always end up on the client, so the content will be available
0
 
CEHJCommented:
Actually, i'm not sure about that. Better check it
0
 
CEHJCommented:
Assuming you can give yourself the all clear on that last point, you can build an xml dom and serialize it to the server output stream
0
 
iasrdAuthor Commented:
0
 
CEHJCommented:
The most efficient and reusable way would be to xslt transform an xml template with your customised parameters
0
 
objectsCommented:
you do it the same way you generate images, create your jnlp in memory and stream it with appropriate content type.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.