File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSPs and -classpath

 
Gaelle SMITS
Greenhorn
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi !
I have a question I cannot solve : I have a web application that runs JSp, which calls a function of a Java class.
This class needs elements of a particular .jar.
When I wrote my Java class, I made tests from another java class, but it couldn't run or compile without including the -classpath option in my command line (ex javac -classpath /product/bba/interface/lib/bba.jar).
So now that I want to call my class from a JSP page, how can I do ?
Thanks for any help,
Gaelle.
 
ersin eser
Ranch Hand
Posts: 1072
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you include that jar file in your web app?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64178
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any jars in the web server container's lib folder(tomcat/lib, resin/lib, etc) will be available automatically to all webapps. To make a jar available for a particular web app, place it in the web app's WEB-INF/lib folder.
hth,
bear
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic