This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts 1.3.5 TLDs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 1.3.5 TLDs" Watch "Struts 1.3.5 TLDs" New topic
Author

Struts 1.3.5 TLDs

aleah de guzman
Greenhorn

Joined: Jun 06, 2006
Posts: 15
where can i get the tlds for struts 1.3.5? coz they are not included in the installation package. all samples were referencing to "http://struts.apache.org".
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Struts 1.3.5 uses the newer style of referencing TLDs. The TLDs are now packaged in the META-INF folder of the struts-taglib-1.3.5.jar file.

Here's how it works:
  • You specify a URI in a <%@ taglib %> tag. (Example: http://struts.apache.org/tags-bean) This isn't a real URL. It represents a Namespace.
  • The web container searches the META-INF directories of all the jar files in the classpath.
  • When a TLD is found that has a <URI> stanza that matches the URI in the taglib declaration, that TLD will be used. In our example, while searching the struts-taglib-1.3.5.jar file, it finds that the file META-INF/tld/struts-bean.tld has a <URI> tag containing "http://struts.apache.org/tags-bean", so this is the TLD that is used.


  • [ October 20, 2006: Message edited by: Merrill Higginson ]

    Merrill
    Consultant, Sima Solutions
    aleah de guzman
    Greenhorn

    Joined: Jun 06, 2006
    Posts: 15
    yes i saw the tlds in the META-INF. thanks for info =)
    Joseph Clark
    Ranch Hand

    Joined: Sep 10, 2005
    Posts: 48
    But, I have this line ...


    ... in a .jsp, with the struts-taglib-1.3.5.jar in /WEB-INF/lib,
    and I get the following error when I load the .jsp.



    Regards,
    JC
    Joseph Clark
    Ranch Hand

    Joined: Sep 10, 2005
    Posts: 48
    I should mention that I'm a total noob, and this is my first
    struts endeavor.

    I am using Tomcat 5 which I know works.

    Here is web.xml


    and struts-config.xml looks like ...


    I am trying the upload-file example at

    http://www.roseindia.net/struts/strutsfileupload.shtml


    Regards,
    [ November 01, 2006: Message edited by: Joseph Clark ]
    Joseph Clark
    Ranch Hand

    Joined: Sep 10, 2005
    Posts: 48


    Oh, it's referring to that locale att.

    Carry on.
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Struts 1.3.5 TLDs