• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSTL support in Tomcat  RSS feed

 
Sreenivasa Majji
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Is Tomcat support JSTL or are there any speical .jar file(s) required to execute JSTL contained JSPs in Tomcat?
Please share your wisdom.
 
Shawn Bayern
Author
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sreenivasa Majji:
Hi,
Is Tomcat support JSTL or are there any speical .jar file(s) required to execute JSTL contained JSPs in Tomcat?
Please share your wisdom.

Tomcat doesn't support JSTL out of the box. Instead, you need to download an implementation and install it. This is a very easy process, typically described fully by the documentation for the implementation you download. One free implementation is available from Apache at the following URL:
http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html
For my book JSTL in Action, my publisher and I made available a free bundle of Tomcat, JSTL, and the book's examples. We figured this might help people get up and running more quickly. You can download this bundle from
http://www.manning.com/getpage.html?project=bayern&filename=source.html
Hope that helps!
[ September 08, 2002: Message edited by: Shawn Bayern ]
 
Sreenivasa Majji
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Shawn.
 
Doug Wang
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Shawn for the infomative details.
But is there any web container that supports JSTL or is there any with future support plan?
[ September 11, 2002: Message edited by: Doug Wang ]
 
Pete Cassetta
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Shawn Bayern:

Tomcat doesn't support JSTL out of the box.

Shawn,
Am I mistaken, or will a future release of Tomcat come with JSTL pre-installed? I thought JSTL is a part of JSP 2.0, so once a Tomcat release that supports JSP 2.0 is out, JSTL should be pre-installed.
This isn't terribly important, as it is easy enough to install JSTL, but inquiring minds want to know...
 
Shawn Bayern
Author
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Pete Cassetta:

Shawn,
Am I mistaken, or will a future release of Tomcat come with JSTL pre-installed? I thought JSTL is a part of JSP 2.0, so once a Tomcat release that supports JSP 2.0 is out, JSTL should be pre-installed.
This isn't terribly important, as it is easy enough to install JSTL, but inquiring minds want to know...

The JSTL expression language will be part of JSP 2.0, but the JSTL tags themselves are still separate. This is primarily to allow JSTL, in its early days, to grow a little more quickly than J2EE would allow. (If JSTL were part of JSP, it would also be part of J2EE and would be tied to the latter's release schedule. The plan is eventually for JSTL to be part of J2EE, but that's not practical yet.)
Whether Tomcat includes JSTL suport is more a Tomcat-specific "marketing" issue than anything else. I've suggested it to the Tomcat folks, but it's solely up to them, decided as any issues in that open-source project are decided. I personally think it's a very good idea, but to my knowledge, there aren't currently any plans for it.
 
Shawn Bayern
Author
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Doug Wang:
Thanks Shawn for the infomative details.
But is there any web container that supports JSTL or is there any with future support plan?
[ September 11, 2002: Message edited by: Doug Wang ]

I believe many JSP and J2EE containers have plans to support it relatively soon. Resin, for instance, is working on its own optimized implementation, and I believe some of the major vendors have plans to bundle JSTL with their products. Note that it's already bundled with Sun's Web Services Developer Pack (WSDP) and the Sun ONE Studio (the successor to Forte).
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!