SV: Struts tag-lib
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. -- Wendy - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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]
SV: SV: Struts tag-lib
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]
Re: SV: SV: Struts tag-lib
No, the TLD file is physically present in the JAR. The fact that it is identified by a URL does not imply that an HTTP connection needs to be made; the URL is just an identifier. L. Søren Blidorf wrote: 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]
Struts tag-lib
Hi. I am confused on how to configure tag-libs i web.xml. 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? Soren, DK - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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. -- Wendy - 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]
Re: How use AND,OR in logic struts tag lib
A very small article on JSTL for quick reference: http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSPIntro7.html On 4/26/06, Rahul Akolkar [EMAIL PROTECTED] wrote: On 4/26/06, Angel Navarro [EMAIL PROTECTED] wrote: Hi, I need to translate: if ( a == 'option1' || a == 'option2' ) snip/ Use JSTL: c:if test=${a eq 'option1' or a eq 'option2'} ... /c:if and is also available in EL similarly. -Rahul to struts code I don't know how put || or in logic:equal ?¿?¿?¿? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Vinit Sharma IBM
Re: How use AND,OR in logic struts tag lib
Thanks 2006/4/27, Vinit Sharma [EMAIL PROTECTED]: A very small article on JSTL for quick reference: http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSPIntro7.html On 4/26/06, Rahul Akolkar [EMAIL PROTECTED] wrote: On 4/26/06, Angel Navarro [EMAIL PROTECTED] wrote: Hi, I need to translate: if ( a == 'option1' || a == 'option2' ) snip/ Use JSTL: c:if test=${a eq 'option1' or a eq 'option2'} ... /c:if and is also available in EL similarly. -Rahul to struts code I don't know how put || or in logic:equal ?¿?¿?¿? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Vinit Sharma IBM
How use AND,OR in logic struts tag lib
Hi, I need to translate: if ( a == 'option1' || a == 'option2' ) to struts code I don't know how put || or in logic:equal ?¿?¿?¿? Thanks
Re: How use AND,OR in logic struts tag lib
On 4/26/06, Angel Navarro [EMAIL PROTECTED] wrote: Hi, I need to translate: if ( a == 'option1' || a == 'option2' ) snip/ Use JSTL: c:if test=${a eq 'option1' or a eq 'option2'} ... /c:if and is also available in EL similarly. -Rahul to struts code I don't know how put || or in logic:equal ?¿?¿?¿? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts Tag Lib VS JSTL Tag Lib
Hi Has any one ever compared Struts Tag Lib and JSTL Tag Lib and drawn any comparison. On Performance, Architecture, Developer comfort. Thanks Preetam Attempt May Be Failure Failure In Attempt~No!
Re: Struts Tag Lib VS JSTL Tag Lib
AFAIK, the Struts tags aren't competing with JSTL tags. I believe the recommended approach is to use JSTL tags when you can, and use the Struts tags when you need functionality not provided by the JSTL tags. In short, if you're looking at writing a block of code and you can go either way, use JSTL. Hubert --- PREETAM Balijepalli [EMAIL PROTECTED] wrote: Hi Has any one ever compared Struts Tag Lib and JSTL Tag Lib and drawn any comparison. On Performance, Architecture, Developer comfort. Thanks Preetam Attempt May Be Failure Failure In Attempt~No! __ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Tag Lib VS JSTL Tag Lib
-Original Message- From: PREETAM Balijepalli [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 1:13 PM To: Struts Users Mailing List Subject: RE: Struts Tag Lib VS JSTL Tag Lib Have you ever compared JSTL and Struts Tag In performance...? I think the immediate question would be...whose JSTL? Struts? Given the overlap between JSTL and some of the struts tags I would imagine there is a lot of copy and paste, so they would probably be about the same. Like page generation SQL access SQL access in a JSP page? Perish the thought :) Given that you're talking about performance, probably slower then doing it the standard J2EE way. Request and response handling Given that most people are using JSP's as view components, especially on this list, I don't think anyones looked at that. Architecture benefits The JSTL, especially the EL portions make writing dynamic pages much easier, by reducing the amount of scriptlets you have. Thanks Preetam -Original Message- From: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 4:02 PM To: Struts Users Mailing List Subject: Re: Struts Tag Lib VS JSTL Tag Lib AFAIK, the Struts tags aren't competing with JSTL tags. I believe the recommended approach is to use JSTL tags when you can, and use the Struts tags when you need functionality not provided by the JSTL tags. In short, if you're looking at writing a block of code and you can go either way, use JSTL. Hubert --- PREETAM Balijepalli [EMAIL PROTECTED] wrote: Hi Has any one ever compared Struts Tag Lib and JSTL Tag Lib and drawn any comparison. On Performance, Architecture, Developer comfort. Thanks Preetam Attempt May Be Failure Failure In Attempt~No! __ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]