jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pier...@apache.org
Subject cvs commit: jakarta-taglibs/standard/examples/conf web.xml
Date Sat, 14 Dec 2002 00:50:52 GMT
pierred     2002/12/13 16:50:52

  Modified:    standard/examples/conf web.xml
  Log:
  Unfortunately, TLD mapping is often source of great confusion.
  For JSP 1.2, the simplest model is the following:
  When creating a taglib:
    - define the <uri> element in the TLD
    - jar the taglib with the TLD in it
  Then all a client webapp has to do is
    - drop the taglib jar file into WEB-INF/lib of the webapp
    - use the uri defined for the taglib in the <taglib> directive
  With that model, no modification of the webapp's deployment
  descriptor (web.xml) is required.
  I've therefore modified web.xml to remove all the mappings
  for the JSTL TLDs since they are not necessary, and simply adds
  to the confusion. The mapping for jstl-examples has been
  left in there for now because of bug 14200.
  [One could argue that the taglib defined in the examples
  webapp should also be built as a jar file. This should
  definitely be the case if that taglib was to be reused
  outside of the examples web-app. But since this is not the case,
  we'll leave it as is (otherwise we'd have to create another
  directory in standard, examples-taglib, that would specifically
  host the code for the examples taglib...)
  
  Revision  Changes    Path
  1.10      +0 -40     jakarta-taglibs/standard/examples/conf/web.xml
  
  Index: web.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/standard/examples/conf/web.xml,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- web.xml	15 Jul 2002 00:52:51 -0000	1.9
  +++ web.xml	14 Dec 2002 00:50:52 -0000	1.10
  @@ -20,46 +20,6 @@
       </welcome-file-list>
   
       <taglib>
  -        <taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
  -        <taglib-location>/WEB-INF/c.tld</taglib-location>
  -    </taglib>
  -
  -    <taglib>
  -        <taglib-uri>http://java.sun.com/jstl/core_rt</taglib-uri>
  -        <taglib-location>/WEB-INF/c-rt.tld</taglib-location>
  -    </taglib>
  -
  -    <taglib>
  -        <taglib-uri>http://java.sun.com/jstl/xml</taglib-uri>
  -        <taglib-location>/WEB-INF/x.tld</taglib-location>
  -    </taglib>
  -
  -    <taglib>
  -        <taglib-uri>http://java.sun.com/jstl/xml_rt</taglib-uri>
  -        <taglib-location>/WEB-INF/x-rt.tld</taglib-location>
  -    </taglib>
  -
  -    <taglib>
  -        <taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri>
  -        <taglib-location>/WEB-INF/fmt.tld</taglib-location>
  -    </taglib>
  -
  -    <taglib>
  -        <taglib-uri>http://java.sun.com/jstl/fmt_rt</taglib-uri>
  -        <taglib-location>/WEB-INF/fmt-rt.tld</taglib-location>
  -    </taglib>
  -
  -    <taglib>
  -        <taglib-uri>http://java.sun.com/jstl/sql</taglib-uri>
  -        <taglib-location>/WEB-INF/sql.tld</taglib-location>
  -    </taglib>
  -
  -    <taglib>
  -        <taglib-uri>http://java.sun.com/jstl/sql_rt</taglib-uri>
  -        <taglib-location>/WEB-INF/sql-rt.tld</taglib-location>
  -    </taglib>
  -
  -    <taglib>
           <taglib-uri>/jstl-examples-taglib</taglib-uri>
           <taglib-location>/WEB-INF/jstl-examples.tld</taglib-location>
       </taglib>
  
  
  

--
To unsubscribe, e-mail:   <mailto:taglibs-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-dev-help@jakarta.apache.org>


Mime
View raw message