• Post Reply Bookmark Topic Watch Topic
  • New Topic

Where to put JSTL and EL jars

 
Timothy Sam
Ranch Hand
Posts: 751
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's been two months and since I touched J2EE. Should I put my JSTL and EL jars in my application server's lib? Or should I bundle it with my application /WEB-INF/lib? Thanks!
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no EL jar -- it's part of JSP 2.0.

You can either put the JSTL jars in WEB-INF/lib or (for Tomcat) shared/lib
 
Timothy Sam
Ranch Hand
Posts: 751
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's better news. Thanks bear!
 
phillip atienza
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
simple answer for that:

Put the JSTL jars in WEB-INF/lib or (for Tomcat) shared/lib.

ok?

hope this helps..
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
philip, that's exactly what I've already posted. Please don't waste everyone's time with "me too" posts that do not add anything new to the topic.
 
Stefan Evans
Bartender
Posts: 1822
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Personally I prefer the WEB-INF/lib approach as opposed to /shared/lib.
- your WAR is not dependant on the server having those files installed
- they are only available for a web app if they are required for that app.
- you can have different web apps with different versions of the jars.

Of course putting them in /shared/lib does have some advantages:
- smaller file sizes for updating your web app as you don't have to bundle the jar files with the WAR.

just my 2 cents.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!