On Sun, 10 Aug 2003, Marco Tedone wrote: > Date: Sun, 10 Aug 2003 22:36:01 +0100 > From: Marco Tedone <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: Struts Users Mailing List <[EMAIL PROTECTED]> > Subject: Re: JSTL and Struts-el > > That's sounds great Craig, thanks. I can guess that you will define what > customer is and where to get it somewhere, presumibly a configuration file.
In a Struts app, it tends to get stored as a request or session attribute by the execution of an Action (and note that you don't care which scope it is in an EL expression :-). Other ways to get it there include things like <jsp:useBean>, or Java code that calls request.setAttribute() or session.setAttribute(). > Now, to know all this stuff, where shall I look at? Is there any > documentation available, does it come with the Struts distribution? (I just > realized that I was still in 1.1-rc1 :)) > Well, that depends on which "stuff" you want to know :-). For JSTL, I'd start by reading the JSTL Specification: http://java.sun.com/products/jsp/jstl/ This page also contains pointers to numerous articles and books that include coverage of JSTL. Of the three books, I've only read Shawn's (and it's quite good), but I have no doubt based on previous experience that Hans and David did an excellent job as well. The JSTL jar files (jstl.jar and standard.jar) are included with Struts-EL (in "contrib/struts-el/lib") but I would suggest going and getting the 1.0.3 standalone release as well -- pick "Taglibs" then "Standard" at: http://jakarta.apache.org/site/binindex.cgi This implementation comes with lots of examples of using each of the tags. The struts-el library itself is included with the Struts 1.1 final release, in the "contrib/struts-el" subdirectory, along with a small webapp containing examples of each tag in use. You might also want to keep your eyes open for articles about JSP 2.0 (and download Tomcat 5 if you're interested in playing with it). Allowing EL expressions to be used everywhere in a JSP 2.0 page is one of the big usability improvements in this version -- but there are lots more too. > Marco Craig --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]