AW: Usin JSTL from jakarta with tomcat and the new web.xml descriptors
"Martin Kindler" <[email protected]>
| Newsgroups | gmane.comp.jakarta.taglibs.user |
|---|---|
| Message-ID | <005001c70cb9$ee814200$6964a8c0@ROTHKO> |
Alexander, if you are using an up-to-date container (Tomcat 5.x) there is nearly nothing you have to configure: 1. include standard.jar and jstl.jar to your WEB-INF/lib directory. 2. Address the taglibs on your jsps using the "official" URI, e. g. http://java.sun.com/jsp/jstl/core for the core taglib Thats it. You no longer need to configure web.xml. Martin > -----Ursprüngliche Nachricht----- > Von: Alexander Shopov [mailto:[email protected]] > Gesendet: Montag, 20. November 2006 16:22 > An: Tag Libraries Users List > Betreff: Re: Usin JSTL from jakarta with tomcat and the new > web.xml descriptors > > > Rashmi Rubdi написа: > > Hi al_shopov, > > > > What problem are you facing, are you getting an error message or do > > you need examples of how to use JSTL XML tags? > The first problem is that I do not know how to install the > libs - i.e. I > am not sure after reading the installation docs at this page: > http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html > how to proceed: - how do I refer the tag libraries in XML JSP pages? > > What I have done is: > 1. Downloaded the binary distro of Standard Taglib version > 1.1.2 2. Unpacked it 3. Copied all tld files from the > jakarta-taglibs-standard-1.1.2/tld/ > library to WEB-INF directory of the application > 4. Copied jstl.jar standard.jar to WEB-INF/lib > 5. Opened the web.xml file just to find that there is no <taglib> > element since it uses the > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd schema. (So > there is no > need to declare taglibs in web.xml anymore probably?) > 6. I don't know how to declare the used tag libraries in the > XML JSP's > in order to use them (which is my problem actually) > I presume that they should most probably be declared in the jsp:root > element of the jspx file like this: > > <jsp:root > xmlns:jsp="http://java.sun.com/JSP/Page" > xmlns:myprefix="URI_to_somewhere" > version="1.2"> > </jsp:root> > > What should be the URI then? > > Kind regards: > al_shopov > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >