Tiago Nodari wrote:
> Can anyone give me some pointers on where to find a useful
> tutorial on how
> to use JSTL, the material and examples at Jakarta dont help, 2 reasons they
> just talk about the EL and not the other library, and the examples at least
> for me at just crazy, I have no ideia where those objects are created, or
> anything, they just apear :)
They are created by a listener when the example application starts, just
to have some data to work with in the examples. The source code for the
listener is included, and IIRC it's described in the README file for the
example application.
Any object in any JSP scope (page, request, session and application) can
be used, so you can create your own application data in a servlet, with
<jsp:useBean>, custom actions of scriptets.
> And the article at OnJava(JSP Standard Tag Libraries, Part 1 and JSP
> Standard Tag Libraries, Part 2), didnt help much....
>
> If anyone has any examples on using the rt part, it would help....
The RT libraries are identical in terms of attributes and functionality
to the EL libraries. The only difference is that to set a dynamic
attribute value, you use a Java expression ("<%= ... %>") just as you
do with standard and custom actions today, instead of an EL expression
("${...}"). The EL is very powerful, though, so I strongly recommend
that you try out the EL libraries instead.
> JSTL look really powerful and useful, if I can learn how to use
> it...
JSTL is still fairly new (it was released in June) so there are not that
many articles and books about it yet. But that will change very soon.
The second edition of my JavaServer Pages (O'Reilly) covers JSTL in
great detail (including the RT libraries). It will be released later
this month. Another book I know of that will soon be released is Shawn
Bayern's JSTL in Action (it's available as an ebook now). You can find
others at <http://java.sun.com/products/jsp/jstl/>.
Also keep an eye on <http://onjava.com/>; My first article in a series
of articles about JSTL will be published in a week or so. The first
one covers the EL and the core JSTL actions. Other articles will focus
on the other JSTL tag libraries as well as how to combine JSTL and
servlets. I'd also be interested in hearing from subscribers on this
list what you'd like to see covered in this JSTL article series, or
in other future web development articles for that matter.
Hans
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
JavaServer Pages http://TheJSPBook.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com