aspose file tools*
The moose likes JNLP and Web Start and the fly likes JNLP and web application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "JNLP and web application" Watch "JNLP and web application" New topic
Author

JNLP and web application

Dishpal Bhaluja
Ranch Hand

Joined: Dec 30, 2007
Posts: 96
Calling a SWING application from Web Application;JSP

I have my three java swing files.Im calling my swing application from JSP.So now I understood its not visible in client when I deploy it.So i need to either use JApplet or Webstart.
So please tell me a way to make my swing application start using Webstart in client.

I have database calls from this swing application that is im using a lot many classes which have many dependencies also.
And my swing application takes parameters from my JSP.So how can I implement my requirements using JNLP and webstart.

I have my classes in different packages and these classes have many dependencies.For eg:hibernate.

How can I overcome my issues,any good guides.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18564
    
    8

Dishpal Bhaluja wrote:And my swing application takes parameters from my JSP.So how can I implement my requirements using JNLP and webstart.


You can't implement those requirements using Webstart. The purpose of Webstart is to allow your Java application to be distributed from a central server. That's all. It doesn't have anything to do with your requirements.

But more to the point, there really isn't anything which can implement your requirements. Basically you aren't using a JSP the way it's meant to be used. In particular having it be the client of an application on the computer where it was requested from is a bizarre idea.

So my recommendation is to scrap whatever design you have so far and start again. Learn about what JSPs are used for. If there's a need for communication between client and server which can't be solved by servlets and JSPs, learn about other kinds of servers. Then design a system which uses components in the way they were meant to be used.
Dishpal Bhaluja
Ranch Hand

Joined: Dec 30, 2007
Posts: 96
Paul I didnt get you?what all these actually mean?

So what you meant by a redesign?

Just convert the concept to implement it using a JSP or what?
Gerbrand van Dieijen
Ranch Hand

Joined: Nov 28, 2008
Posts: 30
Within the JNLP file that's used to start the Webstart Swing application, you can specify parameters. The JNLP file can be dynamic as well, so you can have a JSP file that outputs a JNLP file (instead of HTML file which is the default).
If you start your webapplication by a JNLP file that is generated using a JSP file, you can add parameters dynamically.

Alternatively, you can use an applet. The applet tag can contain parameters. The applet tag can be put into a JSP file, and then you can add parameters from within the html code. The HTML code can be generated by a JSP file, so that code can be dynamic as well.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JNLP and web application