Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts 1.3.5 TLDs

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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".
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
     
    aleah de guzman
    Greenhorn
    Posts: 15
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    yes i saw the tlds in the META-INF. thanks for info =)
     
    Ranch Hand
    Posts: 48
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    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
    Posts: 48
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    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
    Posts: 48
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator


    Oh, it's referring to that locale att.

    Carry on.
     
    No matter how many women are assigned to the project, a pregnancy takes nine months. Much longer than this tiny ad:
    We need your help - Coderanch server fundraiser
    https://coderanch.com/t/782867/Coderanch-server-fundraiser
    reply
      Bookmark Topic Watch Topic
    • New Topic