struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: What am i missing? Question about tlds
Date Wed, 08 Jan 2003 19:39:37 GMT


On Wed, 8 Jan 2003, Jeff Born wrote:

> Date: Wed, 8 Jan 2003 10:25:27 -0600
> From: Jeff Born <jborn@gr.com>
> Reply-To: Struts Users Mailing List <struts-user@jakarta.apache.org>
> To: "Struts Users Mailing List (E-mail)" <struts-user@jakarta.apache.org>
> Subject: What am i missing? Question about tlds
>
> I just started using struts-el.  Everything seems to be working fine, however
> I never defined the struts-html-el.tld in the web.xml.
>
> My question is why does this work.  Why should I put the tld definitions in
> the web.xml?
>

It's magic!  :-)

Actually, you're probably using a JSP 1.2 or later container, which knows
how to find TLDs in the JAR files that are included in your WEB-INF/lib
directory automatically (and the Struts JARs have them in the right
places).

For example, in Tomcat 4 (or another Servlet 2.3 / JSP 1.2) container, and
running Struts 1.1-b3, you can reference the struts-bean TLD like this in
your page, and say nothing about it in the web.xml file:

  <%@ taglib prefix="bean" uri="http://jakarta.apache.org/struts/tags-bean" %>

The "official" URI for each TLD is listed in the <uri> element of the TLD
itself.

> Thanks,
>
> jb

Craig


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


Mime
View raw message