Here are some more details 

Example of How to use JSTL tags insdie a JSP:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

example.jsp

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"; %>
<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml"; %>

<c:import url="/data.xml" var="xml"/>
<c:import url="/trasnform.xsl" var="xsl"/>
<x:transform doc="${xml}" xslt="${xsl}" />

JSTL API
~~~~~~~
http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/index.html

JSTL Specification (PDF Document):
~~~~~~~~~~~~~~~~~~~~~~~~~~
http://jcp.org/aboutJava/communityprocess/final/jsr052/

Configuration:
~~~~~~~~~

/WEB-INF/lib/
jstl.jar
standard.jar
xalan.jar
serializer.jar

/WEB-INF/tld/
c.tld
fmt.tld
fn.tld
sql.tld
x.tld

/WEB-INF/web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4"
         xmlns="http://java.sun.com/xml/ns/j2ee";
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
</web-app>

----- Original Message ----
From: Martin Kindler <[EMAIL PROTECTED]>
To: Tag Libraries Users List <taglibs-user@jakarta.apache.org>
Sent: Monday, November 20, 2006 10:38:31 AM
Subject: AW: Usin JSTL from jakarta with tomcat and the new web.xml descriptors


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]
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 
____________________________________________________________________________________
Sponsored Link

Mortgage rates near 39yr lows. 
$510k for $1,698/mo. Calculate new payment! 
www.LowerMyBills.com/lre

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to