Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Struts Wiki" for change 
notification.

The following page has been changed by MichaelJouravlev:
http://wiki.apache.org/struts/StrutsDocConfiguring

The comment on the change is:
Removed obsolete notes

------------------------------------------------------------------------------
- Typo.  In the "Configuring Applications" chapter (chapter 5), section 5.5 
says:
+ For SRV 2.2 and prior containers TLD files should be referenced in 
{{{web.xml}}} file using "taglib" element, for example:
  
-  ''Servlet 2.3 Users: See section 4.5.3.1  for how to avoid copying the tlds 
into your application.''
- 
- The "section 4.5.3.1" is a link to 
http://jakarta.apache.org/struts/userGuide/configuration.html#dd_config_taglib_23
 -- which is actually
- section 5.4.3.1.  So, it appears that the '4' and '5' are transposed.
- 
- ''This has been fixed in CVS.  It might be more effective to enter small 
notes like this as Bugzilla tickets.  However, we'll leave this page here until 
sometime after a new copy of the site is deployed.''
- 
- ----- 
- 
- In Chapter 6.2 Installation, subsection 'Install A Struts Binary 
Distribution' it says that you should add the following lines to web.xml: {{{ 
- <taglib>
-   <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
-   <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
- </taglib>
- 
- <taglib>
-   <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
-   <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
- </taglib>
- 
- <taglib>
-   <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
-   <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
- </taglib>
- }}}
- But I think that it should be: 
  {{{
- 
    <taglib>
      <taglib-uri>/tags/struts-bean</taglib-uri>
      <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
@@ -46, +19 @@

    </taglib>
  }}} 
  
+ For SRV 2.3+ containers the above definition is redundant, the container will 
search inside JAR files in the war\lib directory and will load TLD information 
from a suitable one. For this to work the JAR files must contain TLD files in 
META-INF\tld folder (struts-taglib-x.jar file does contain difintions for 
Struts tags).
+ 

Reply via email to