at the JSTL stuff. I ended up grabbing the JSTL from sun and copying
TLDs and jars into my local lib directory for the application (struts is there)
and that works. I got version 1.1. I am currently reading the final spec for
JSTL and I ordered JSTL in Action. I just think it would be nice if I could
look somewhere on the struts site and see before and after examples
of these various tags. For example, logic:notPresent is replaced by,
bean:message is replaced by... with actual simple examples.
Thanks. Dean Hoover
Niall Pemberton wrote:
You can either plug JSTL in if you are using a Version 2.3 servlet container (e.g. Tomcat 4) or you can use a Version 2.4 Servlet Container which comes with it (e.g. Tomcat 5)
If you need to plug it in, download JSTL version 1 from Jakarta Taglibs - installation instructions included.
If you want to know more about JSTL:
Specification: http://www.jcp.org/aboutJava/communityprocess/final/jsr052/index.html
Sun Page: http://java.sun.com/products/jsp/jstl/
Sun Tutorial: http://java.sun.com/webservices/docs/1.0/tutorial/doc/JSTL.html#74644
Java World Article http://www.javaworld.com/javaworld/jw-02-2003/jw-0228-jstl.html
OnJava: http://www.onjava.com/pub/a/onjava/2003/11/05/jsp.html
IBM JSTL Primer (4 Parts): http://www-106.ibm.com/developerworks/java/library/j-jstl0211.html http://www-106.ibm.com/developerworks/java/library/j-jstl0318/ http://www-106.ibm.com/developerworks/java/library/j-jstl0415/ http://www-106.ibm.com/developerworks/java/library/j-jstl0520/
Niall
----- Original Message ----- From: "Dean A. Hoover" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 07, 2004 6:38 PM
Subject: upgrading to jstl
I have been using struts 1.1 for a couple of months now, and want to make sure I am using best practices. Most of my education has come from Struts in Action and Programming Jakarta Struts, and this mailing list. It appears that I should shift to using the JSTL tags in preference to various struts tags. Is there a write up somewhere on how to go about it? For example, based on my book learning, I embraced using message resources. So, in my JSP files I'll make reference to <bean:message key="login.title"/> and maybe in my tiles-defs.xml file I'll have a line like, <put name="title" value="forgotPassword.heading"/> How *should* I do this? Also, what about other struts tags, like logic:notPresent, etc., etc.
Is there an upgrade HOWTO someplace? When I need to use struts tags, should they be the EL versions?
Dean Hoover
--------------------------------------------------------------------- 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]