Solved

Dynamic JNLP creation through servlet

Posted on 2007-12-06
9
2,154 Views
Last Modified: 2013-11-24
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
Comment
Question by:iasrd
  • 5
  • 2
  • 2
9 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 20420469
Why JNLP? That's for specifying Java Web Start applications
0
 

Author Comment

by:iasrd
ID: 20420569
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
 
LVL 86

Expert Comment

by:CEHJ
ID: 20420827
The jnlp will always end up on the client, so the content will be available
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 86

Expert Comment

by:CEHJ
ID: 20420859
Actually, i'm not sure about that. Better check it
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 20420871
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
 

Author Comment

by:iasrd
ID: 20422461
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 20422536
The most efficient and reusable way would be to xslt transform an xml template with your customised parameters
0
 
LVL 92

Expert Comment

by:objects
ID: 20423938
you do it the same way you generate images, create your jnlp in memory and stream it with appropriate content type.
0
 
LVL 92

Accepted Solution

by:
objects earned 500 total points
ID: 20423949
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
HSSFWorkbook cannot be resolved error 10 69
Oracle SQL syntax check  without executing 6 54
even odd program using while loop 3 40
Windows 10 IE Certificate Issue 10 45
How can MDaemon MRK files and MSG files work together? We can also say that, how worldclient and Outlook connecter works, using both application collectively you can view your mails, contacts, calendar, task, notes. In this article you can unders…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
In this Experts Exchange video Micro Tutorial, I'm going to show how small business owners who use Google Apps can save money by setting up what is called a catch-all email address in their Gmail accounts. By using the catch-all feature, small busin…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question