Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JAR which exposes javax.servlet and other packages.  RSS feed

 
Claude Moore
Ranch Hand
Posts: 874
8
IBM DB2 Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

I want to write a simple Java library - I mean, a Java project which I want to make available via a JAR - that will be used in a Java EE context. My library needs javax.servlet.* packages. Is there a jar which exposes only javax.servlet.* interfaces ? Thanks.
 
Rob Spoor
Sheriff
Posts: 21047
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you download Tomcat's binary ZIP file, it includes servlet-api.jar. That contains all you need. If you want to also develop for JSP then you'll also need jsp-api.jar that also available in the same ZIP file.
 
Claude Moore
Ranch Hand
Posts: 874
8
IBM DB2 Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you, I'll try it.
Regards !
 
Rob Spoor
Sheriff
Posts: 21047
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're welcome
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!