This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSTL Requirements

 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Java ranchers,
JSTL requires Servlet 2.3 and jsp 1.2 version. May I know the reason.
If true,this will be bad news for me becoz I cannot use it with Sun One web server used in my project.
 
Shawn Bayern
Author
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Pradeep Bhat:
Hi Java ranchers,
JSTL requires Servlet 2.3 and jsp 1.2 version. May I know the reason.
If true,this will be bad news for me becoz I cannot use it with Sun One web server used in my project.

JSTL requires JSP 1.2 because it depends on some of JSP 1.2's new features. (This includes at least TagLibraryValidator, IterationTag, and a fuller specification of the tag-handler lifecycle protocol.)
You can use JSTL with the Web Services Developer Pack, with which it is bundled. You may also use it with Tomcat 4.x or any modern JSP 1.2 container. JSP 1.1 is shortly going to be two versions out of date, as JSP 2.0 is just around the corner.
 
John Wetherbie
Rancher
Posts: 1449
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Has any thought been given to retro-fitting JSTL to JSP 1.1? Or is this not worth the effort?
 
Shawn Bayern
Author
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by John Wetherbie:
Has any thought been given to retro-fitting JSTL to JSP 1.1? Or is this not worth the effort?

Not really. It's mostly a matter of correctness and semantic expressiveness; JSP 1.1 simply doesn't support all the nuances that JSTL 1.0 relies on. Someone could always come up with a JSTL-like set of taglibs that runs on JSP 1.1, but it's not possible to implement JSTL 1.0 completely using JSP 1.1.
I also think you're right that even if it were possible, it might not be worth the effort. With JSP 2.0 just around the corner, JSP 1.1 is about to be two revisions behind. That doesn't mean it won't continue to be supported; all enterprise technologies are supported for quite a long time. It just means new features, like JSTL (and anything that JSP 2.0 brings to the table), need not be retrofitted to older versions of JSP.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic