• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Calling Java Swing application in JSP Page

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have an Java Swing application which in turn calls an dll file and three Java files. How can I call this Java Swing application in JSP form, while clicking an button?

I have already converted this Swing application to JApplet(using the same dll and three java files). Is there is any way to call this JApplet in JSP Page?
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Welcome to JavaRanch!

For a normal applet, the JSP page can simply emit the appropriate "applet" or "embed" tag as part of its normal HTML. This tag should point to the location of the applet on your server. It's not a big deal.

If you really mean DLL, though, as in native code, there are problems. First of all, the Java plug-in won't download your DLL. You're going to have to get your users to install this DLL by some other channel -- i.e., download it and install it themselves. Secondly, for your applet to access the DLL, it's going to need to be digitally signed, and it's going to need to have the right permissions configured.

Finally, there are the cross-platform issues to consider. Only Windows users will be able to use your applet unless you provide versions of your native code for other OSs.
 
reply
    Bookmark Topic Watch Topic
  • New Topic