Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Calling JAR file in JSP form  RSS feed

 
Sridevi Kumarasamy
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there is any way to call a JAR file in JSP form?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sridevi Kumarasamy:
Is there is any way to call a JAR file in JSP form?


I guess it would depend on what you mean by "call".

Are you trying to use classes from within the jar in your webapp?
If so, then yes this is possible and very common. Just put the jar file under WEB-INF/lib and import it with the package/classname like you would any other classes.

If you are trying to run an excecutable jar, while possible, it probably isn't the best solution.

What are you trying to do?
[ May 25, 2005: Message edited by: Ben Souther ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!