On 7/14/06, Yanroy <[EMAIL PROTECTED]> wrote:

I'm glad you confirmed for me that the Servlet version has little or nothing
to do with the struts version... I was beginning to suspect this.  There
should be a wiki page somewhere that demystifies all this... Things I'd like
to be able to find (all in one place) are the relations between different
versions of struts, the Servlet versions and which combinations are
interoperable with the various taglibs.  Also, it would be nice to know what
libraries/websites/etc provide each of these (so people like me who don't
know what they're doing can figure out which ones they have, which versions
they have, and how to upgrade any pieces of the puzzle that aren't the right
version).

Yes, this stuff had been confusing for me too ;)

Original Struts taglib contains tags for HTML controls, for bean
access and for iterating collections. It was released in the stone
ages, way before JSTL.

JSTL is a standard JSP custom library (actually a spec) that has many
features of Struts taglib like bean access or iterators.

JSTL can be used in any JSP page, and it is a *standard* so expect
more people to know JSTL than Struts tags. Well, may Struts tags can
be used in regular JSP pages too, but these tags are not standard and
frankly, quite cumbersome to use.

Therefore it is recommended to use JSTL tags whenever possible. The
glaring omission in JSTL tags is that they do not cater for HTML form
I/O, they do not generate proper input names so values from them can
be read into applicaiton. For this you should use Struts <html:...>
tags.

Now, if you decide to use JSTL tags, you need your servlet container
to support Servlet 2.3 spec (say, Tomcat4, Resin 2) or better yet
Servlet 2.4 spec (say, Tomcat 5, Resin 3). In SRV2.3 container you can
use JSTL 1.0 library only. The EL syntax is limited to JSTL-specific
tags, so your markup does not look so nice. In SRV2.4 container you
can use JSTL1.1, so you can refer to Java beans right in the middle of
HTML markup.

Your web.xml does not have to match actual servlet container version,
so you can use 2.3 web.xml in 2.4 container, but you will be limited
with SRV2.3 features. What's the point in that? So usually your
web.xml doctype matches actual container capabilities.

Struts version is not relevant. You can use Struts on any container
(starting with 2.2 I believe). I think that upcoming 1.3.5 release
warrants for SRV2.3 minimum).

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

Reply via email to