Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSTL with Tomcat 6?

 
Ed Carrington
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does Tomcat 6.0.16 come with that wasnt included in earlier versions?

I think with Tomcat 5 and up we got EL so I would think newer version (6.0.16) would include JSTL?

[ April 10, 2008: Message edited by: Ed Carrington ]
[ April 10, 2008: Message edited by: Bear Bibeault ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64824
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm still on Tomcat 5.5, so I don't know what Tomcat 6 includes or not. But if it doesn't have the JSTL pre-installed, it's not hard to drop two jar files into the lib folder.
 
Guy Allard
Ranch Hand
Posts: 776
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
6.0.14 does not.

You might take a look at JSTL Intro to get started.

Or other places. That may be old.

Guy
[ April 10, 2008: Message edited by: Guy Allard ]
 
Ed Carrington
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

it's not hard to drop two jar files into the lib folder.


Thanks for the feedback. Do you recommend putting the two JSTL jar files in the main Tomcat lib folder (Tomcat6Home\common\lib) or should I put it in each web app. For example this could be one of my webapps locatoin where I would put the two jar files: Tomcat6Home\webapps\JavaIsFunWebApp\WEB-INF\lib ?
[ April 12, 2008: Message edited by: Ed Carrington ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64824
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If all the web apps to be served by the container instance are going to use the same version of JSTL, it's fine to place them in the common area. If the web apps need to be independent, then the jars should be placed within the WEB-INF/lib of each context.
 
Ed Carrington
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic