Re: Usin JSTL from jakarta with tomcat and the new web.xml descriptors
Alexander Shopov <[email protected]>
| Newsgroups | gmane.comp.jakarta.taglibs.user |
|---|---|
| Message-ID | <[email protected]> |
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