29-03-2012, 01:02 PM
Integrating with other web frameworks
Introduction 21.docx (Size: 135.22 KB / Downloads: 147)
Introduction
One of the core value propositions of the Spring Framework is that of enabling choice. In a general sense,
Spring does not force one to use or buy into any particular architecture, technology, or methodology (although
it certainly recommends some over others). This freedom to pick and choose the architecture, technology, or
methodology that is most relevant to a developer and his or her development team is arguably most evident in
the web area, where Spring provides its own web framework (Spring MVC), while at the same time providing
integration with a number of popular third party web frameworks. This allows one to continue to leverage any
and all of the skills one may have acquired in a particular web framework such as Struts, while at the same time
being able to enjoy the benefits afforded by Spring in other areas such as data access, declarative transaction
management, and flexible configuration and application assembly.
JavaServer Faces 1.1 and 1.2
JavaServer Faces (JSF) is the JCP's standard component-based, event-driven web user interface framework. As
of Java EE 5, it is an official part of the Java EE umbrella.
For a popular JSF runtime as well as for popular JSF component libraries, check out the Apache MyFaces
project. The MyFaces project also provides common JSF extensions such as MyFaces Orchestra: a
Spring-based JSF extension that provides rich conversation scope support.
SpringBeanVariableResolver (JSF 1.1/1.2)
SpringBeanVariableResolver is a variant of DelegatingVariableResolver. It delegates to the Spring's
'business context' WebApplicationContext first, then to the default resolver of the underlying JSF
implementation. This is useful in particular when using request/session-scoped beans with special Spring
resolution rules, e.g. Spring FactoryBean implementations.
Apache Struts 1.x and 2.x
Struts is the de facto web framework for Java applications, mainly because it was one of the first to be released
(June 2001). Invented by Craig McClanahan, Struts is an open source project hosted by the Apache Software
Foundation. At the time, it greatly simplified the JSP/Servlet programming paradigm and won over many
developers who were using proprietary frameworks. It simplified the programming model, it was open source
(and thus free as in beer), and it had a large community,
WebWork 2.x
From the WebWork homepage...
“ WebWork is a Java web-application development framework. It is built specifically with developer
productivity and code simplicity in mind, providing robust support for building reusable UI templates, such as
form controls, UI themes, internationalization, dynamic form parameter mapping to JavaBeans, robust client
and server side validation, and much more. ”