My Notepad

  • My Linux Notes
  • My Grid Notes
  • To do List
  • Tuesday, April 07, 2009

     

    jstl 1.2 and forEach

    1. forEach appears only suppported by JSTL 1.2.
    2. JSTL 1.2 is part of java EE 5 platform. Howerver, it can also work with tomcat 6. Tomcat 5 appears not working.
    3. To make tomcat 6 work with JSTL 1.2. Following instructions at :
    http://www.mularien.com/blog/2008/02/19/tutorial-how-to-set-up-tomcat-6-to-work-with-jstl-12/comment-page-1/
    Basically find javaee.jar and appserv-jstl.jar from glassfish/lib and copy the former to tomcat6/lib and the latter to app/WEB-INF/lib.

    4. forEach will NOT work if using with jsp:usebean!! As long as it's a collection, forEach will be able to iterate through each of the collection.
    5. Although not required, you might want to update to use servlet 2.5 in your web.xml when upgrade to tomcat 6.

    Comments: Post a Comment



    << Home

    Archives

    December 2005   January 2006   February 2006   April 2006   May 2006   June 2006   July 2006   November 2006   February 2007   May 2007   June 2007   November 2007   February 2008   March 2008   April 2008   August 2008   December 2008   March 2009   April 2009   May 2009   June 2009   October 2009   November 2009   December 2009   May 2013  

    This page is powered by Blogger. Isn't yours?