[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2416
  • Last Modified:

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?
0
iasrd
Asked:
iasrd
  • 5
  • 2
  • 2
1 Solution
 
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
 
CEHJCommented:
The jnlp will always end up on the client, so the content will be available
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 5
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now