my dog learned polymorphism*
The moose likes JSP and the fly likes struts defn in web.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "struts defn in web.xml" Watch "struts defn in web.xml" New topic
Author

struts defn in web.xml

abiodun emmanual
Greenhorn

Joined: Jun 23, 2003
Posts: 6
Hello Im sorry to bother evryone but I have a small problem with declaring taglib libs, I know that there are several ways of declaring taglib libs in the web.xml file. All the examples I seem to find like to declare it like this:-
<taglib>
<taglib-uri>/WEB-INF/app.tld</taglib-uri> <taglib-location>/WEB-INF/app.tld</taglib-location>
</taglib>
ie saying that the .tld file is located in the web-inf dir, but when using the struts jar file it already has all the .tld files inside the meta-inf dir of the struts.jar file, so why do I then need to copy the .tld file that I require from struts.jar to web-inf dir. Is there no way that I could declare something like this for the struts tags inside my web.xml file:-
<taglib>
<taglib-uri>/struts-bean</taglib-uri>
<taglib-location>/WEB-INF/lib/struts.jar</taglib-location>
</taglib>
ie saying that the .tld file is inside the struts jar file.
thanku for your time
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: struts defn in web.xml
 
Similar Threads
Struts Taglibs and web.xml
*.tld in the struts.jar
.tld file
Struts taglibs - references - doubt
regarding updating web.xml with struts1.1