Solved

Dynamic JNLP creation through servlet

Posted on 2007-12-06
9
2,126 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
Comment Utility
Why JNLP? That's for specifying Java Web Start applications
0
 

Author Comment

by:iasrd
Comment Utility
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
Comment Utility
The jnlp will always end up on the client, so the content will be available
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
Actually, i'm not sure about that. Better check it
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
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
Comment Utility
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
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
Comment Utility
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
Comment Utility
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This video teaches viewers about errors in exception handling.

771 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now