OK, thanks.

Maybe I am missing something ;o) but what if the server is not connected to
the internet? Then I will need the copy in my WEB-INF, right?

Soren, DK

-----Oprindelig meddelelse-----
Fra: Paul Benedict [mailto:[EMAIL PROTECTED] På vegne af Paul
Benedict
Sendt: 24. juli 2007 08:54
Til: Struts Users Mailing List
Emne: Re: SV: Struts tag-lib

Old servlet containers (2.2 and before) did not scan the web module to 
find TLD files automatically. If you're using an older container, you 
unfortunately have to put a copy of the TLD in your WEB-INF directory. 
But this is quite redundant :-) The TLD file contains a url name that is 
its official name. Newer web containers can find the file based on this 
name, and better, you don't need to copy the files to WEB-INF.

Paul

Søren Blidorf wrote:
> Why is it that I need to change the tag-lib URI?
>
> Old way: /WEB-INF/struts-html.tld
>
> New: http://struts.apache.org/tags-html
>
> Both ways seems to work....
>
>
> Soren, DK
>
> -----Oprindelig meddelelse-----
> Fra: Søren Blidorf [mailto:[EMAIL PROTECTED] 
> Sendt: 23. juli 2007 21:42
> Til: 'Struts Users Mailing List'
> Emne: SV: Struts tag-lib
>
> I am using struts 1.2.4.
>
>
http://struts.apache.org/1.2.4/userGuide/configuration.html#dd_config_taglib
>
> When I download struts 1.2.4 from the archive, web.xml in the
> struts_blank.war is configured like this:
>
>   <!-- Struts Tag Library Descriptors -->
>   <taglib>
>     <taglib-uri>/tags/struts-bean</taglib-uri>
>     <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
>   </taglib>
>
>   <taglib>
>     <taglib-uri>/tags/struts-html</taglib-uri>
>     <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
>   </taglib>
>
>   <taglib>
>     <taglib-uri>/tags/struts-logic</taglib-uri>
>     <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
>   </taglib>
>
>   <taglib>
>     <taglib-uri>/tags/struts-nested</taglib-uri>
>     <taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
>   </taglib>
>
>   <taglib>
>     <taglib-uri>/tags/struts-tiles</taglib-uri>
>     <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
>   </taglib>
>
> -----Oprindelig meddelelse-----
> Fra: Wendy Smoak [mailto:[EMAIL PROTECTED] 
> Sendt: 23. juli 2007 21:22
> Til: Struts Users Mailing List
> Emne: Re: Struts tag-lib
>
> On 7/23/07, Søren Blidorf <[EMAIL PROTECTED]> wrote:
>
>   
>> I am confused on how to configure tag-libs i web.xml.
>>     
>
> Unless you're using a really old Servlet container, you don't need to
> put anything in web.xml.  (Since Servlet 2.3, the container will scan
> the jar files in WEB-INF/lib and discover the taglibs.)
>
>   
>> The guidelines says: "http://struts.apache.org/tags-html";
>>
>> But the example from the webapps that comes with the download of struts
>> says: "/tags/struts-html"
>>
>> What is correct?
>>     
>
> What version of Struts? What url for the guideline you mention above,
> and what page in the example?
>
> The latest taglibdoc is here...
> http://struts.apache.org/1.x/struts-taglib/tlddoc/html/tld-summary.html
>
> ... which says to use this in your JSP:
> <%@ taglib prefix="html" uri="http://struts.apache.org/tags-html"; %>
>
> Let us know where you found the incorrect info so we can fix it.
>
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to