You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Robert Egan <ju...@dnai.com> on 2001/08/11 08:37:38 UTC

System.out.println() statements in struts.jar

Hi,

This may be a crude way to understand some codings;but I like to putting

println() statements in various places in the source code.  I then get a
definitive
answer to any questions I have about the sequence of classes and methods

used by the application.  I find this very enlightening.

I have tried this with Struts; but I am unable to find the source code
for 1
good size file in struts.jar named  taglib.tld.  All the struts.jar
source code
without this 1 file compiles just fine; but when I run an app in the
browser the
app can not find the ForwardTag class or the  forward action  for
"welcome".
My guess is that the taglib.tld holds the answer.

Why is this file not included in the source code files??  Where do I get
the
source code for this file??

Thank you very much for any help.

Robert  Egan

Re: System.out.println() statements in struts.jar

Posted by Martin Cooper <ma...@tumbleweed.com>.
However, note that the .tld files themselves are not part of the source
distribution of Struts. These files are generated from the corresponding
.xml files as part of the build process. So, for example, struts-logic.xml
in the source distribution will cause struts-logic.tld to be generated by
the build.

--
Martin Cooper


----- Original Message -----
From: "Craig R. McClanahan" <cr...@apache.org>
To: <st...@jakarta.apache.org>
Sent: Saturday, August 11, 2001 8:53 AM
Subject: Re: System.out.println() statements in struts.jar


> On Fri, 10 Aug 2001, Robert Egan wrote:
>
> > Hi,
> >
> > This may be a crude way to understand some codings;but I like to putting
> >
> > println() statements in various places in the source code.  I then get a
> > definitive
> > answer to any questions I have about the sequence of classes and methods
> >
> > used by the application.  I find this very enlightening.
> >
> > I have tried this with Struts; but I am unable to find the source code
> > for 1
> > good size file in struts.jar named  taglib.tld.  All the struts.jar
> > source code
> > without this 1 file compiles just fine; but when I run an app in the
> > browser the
> > app can not find the ForwardTag class or the  forward action  for
> > "welcome".
> > My guess is that the taglib.tld holds the answer.
> >
> > Why is this file not included in the source code files??  Where do I get
> > the
> > source code for this file??
> >
> > Thank you very much for any help.
> >
> > Robert  Egan
> >
>
> The "taglib.tld" file is the tag library descriptor for the old Struts 0.5
> version of the custom tags (when they were all in one tag library).  You
> don't really want to be using that anyway (you want to use
> struts-bean.tld, struts-html.tld, and so on).  However, the old 0.5 tags
> are supported but deprecated in Struts 1.0.  They have been removed in the
> current 1.1-dev development branch.
>
> In the Struts 1.0 release, the actual file is named "struts.tld", and it's
> in the "lib" directory along with the other JAR and TLD files.  (In the
> JAR file it's named "taglib.tld" in order to conform to JSP 1.1
> specification requirements for embedded tlds).
>
> You will definitely find that the tag library descriptor is how the JSP
> engine figures out which tag corresponds to which Java class, and what tag
> attributes are legal.  For more information, see the JavaServer Pages
> specification, which you can download at:
>
>   http://java.sun.com/products/jsp/download.html
>
> Craig
>
>
>



Re: System.out.println() statements in struts.jar

Posted by "Craig R. McClanahan" <cr...@apache.org>.
On Fri, 10 Aug 2001, Robert Egan wrote:

> Hi,
> 
> This may be a crude way to understand some codings;but I like to putting
> 
> println() statements in various places in the source code.  I then get a
> definitive
> answer to any questions I have about the sequence of classes and methods
> 
> used by the application.  I find this very enlightening.
> 
> I have tried this with Struts; but I am unable to find the source code
> for 1
> good size file in struts.jar named  taglib.tld.  All the struts.jar
> source code
> without this 1 file compiles just fine; but when I run an app in the
> browser the
> app can not find the ForwardTag class or the  forward action  for
> "welcome".
> My guess is that the taglib.tld holds the answer.
> 
> Why is this file not included in the source code files??  Where do I get
> the
> source code for this file??
> 
> Thank you very much for any help.
> 
> Robert  Egan
> 

The "taglib.tld" file is the tag library descriptor for the old Struts 0.5
version of the custom tags (when they were all in one tag library).  You
don't really want to be using that anyway (you want to use
struts-bean.tld, struts-html.tld, and so on).  However, the old 0.5 tags
are supported but deprecated in Struts 1.0.  They have been removed in the
current 1.1-dev development branch.

In the Struts 1.0 release, the actual file is named "struts.tld", and it's
in the "lib" directory along with the other JAR and TLD files.  (In the
JAR file it's named "taglib.tld" in order to conform to JSP 1.1
specification requirements for embedded tlds).

You will definitely find that the tag library descriptor is how the JSP
engine figures out which tag corresponds to which Java class, and what tag
attributes are legal.  For more information, see the JavaServer Pages
specification, which you can download at:

  http://java.sun.com/products/jsp/download.html

Craig