Professional Documents
Culture Documents
If you have worked with Java then choosing versions should not come to you as a
surprise. One might wonder how the JDKs have evolved over the years and how every
application that was built using a particular version of JDK would be obsolete by the time
the application was fully deployed.
Any application you use will always have versions and with each version increase the
features and advantages of the newer version should by right increase too. Struts is not an
exception. When struts was initially released the struts 1 was quite popular for quite some
time. The current release Struts 2 has many differences from the struts 1. This article
describes the differences between struts 1 and struts and offers a comparison chart
between them.
Struts 1 integrates with JSTL, so it Struts 2 can use JSTL, but the
uses the JSTL EL. The EL has basic framework also supports a more
Expression
object graph traversal, but relatively powerful and flexible expression
Language
weak collection and indexed language called "Object Graph
property support. Notation Language" (OGNL).
Binding Struts 1 uses the standard JSP Struts 2 uses a "ValueStack"
values into mechanism for binding objects into technology so that the taglibs can
views the page context for access. access values without coupling your
view to the object type it is
rendering. The ValueStack strategy
allows reuse of views across a range
of types which may have the same
property name but different property
types.