• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

JNLP and web application

 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Sheriff
Posts: 28370
99
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
This is my favorite show. And this is my favorite tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic