• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can a DLL be used in JSP Page  RSS feed

 
Rajat Sethi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And if yes then HOW ?

And please send me sample code of JSP to use DLL and call functions of DLL in JSP file.

I am in very much need of this concept.
As i a min mid way of completion of JSP work .

Please help Me.

rajatsethi20@gmail.com
 
Amit Ghai
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this link
http://www.atwistedweb.com/java/jni.html
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66307
152
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's nothing particular to JSP about using JNI, so this has been moved to the Java in General forum.
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There shouldn't be any significant problems except that, as you have no control over the name of the class generated from the JSP, you won't be able to put native methods directly in the JSP itself. Instead, define another class with native methods, and use that class from the JSP.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're willing to commit to a Windows environment, Google for "Java COM bridge", too. There are a number of products at varying prices. JACOB is the only one I've touched, and it was pretty slick.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!