struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <>
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 <>
> Reply-To: Struts Users Mailing List <>
> To: "Struts Users Mailing List (E-mail)" <>
> 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

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="" %>

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

> Thanks,
> jb


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message