Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 1.3.5 TLDs

 
aleah de guzman
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • 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".
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • 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
    • Quote
    • Report post to moderator
    yes i saw the tlds in the META-INF. thanks for info =)
     
    Joseph Clark
    Ranch Hand
    Posts: 48
    • Mark post as helpful
    • send pies
    • 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
    • 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
    • Quote
    • Report post to moderator


    Oh, it's referring to that locale att.

    Carry on.
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic