Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Calling Java Swing application in JSP Page

 
Sridevi Kumarasamy
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • 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?
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic