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.
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.
Joined: Dec 30, 2007
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?
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.