updated remaing 2.5.x JavaDoc reeferences to 3.0.x ones (SPR-6402)
This commit is contained in:
@@ -83,7 +83,7 @@
|
||||
contains all of the 'business beans' in one's application.</para>
|
||||
|
||||
<para>On to specifics: all that one need do is to declare a <ulink
|
||||
url="http://static.springframework.org/spring/docs/2.5.x/api/org/springframework/web/context/ContextLoaderListener.html"><classname>ContextLoaderListener</classname></ulink>
|
||||
url="http://static.springframework.org/spring/docs/3.0.x/javadoc-api/org/springframework/web/context/ContextLoaderListener.html"><classname>ContextLoaderListener</classname></ulink>
|
||||
in the standard Java EE servlet <literal>web.xml</literal> file of one's web
|
||||
application, and add a <literal>contextConfigLocation</literal>
|
||||
<context-param/> section (in the same file) that defines which set
|
||||
@@ -95,15 +95,6 @@
|
||||
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
|
||||
</listener></programlisting>
|
||||
|
||||
<note>
|
||||
<para>Listeners were added to the Servlet API in version 2.3; listener
|
||||
startup order was finally clarified in Servlet 2.4. If you have a
|
||||
Servlet 2.3 container, you can use the <ulink
|
||||
url="http://static.springframework.org/spring/docs/2.5.x/api/org/springframework/web/context/ContextLoaderServlet.html"><classname>ContextLoaderServlet</classname></ulink>
|
||||
to achieve the same functionality in a 100% portable fashion (with
|
||||
respect to startup order).</para>
|
||||
</note>
|
||||
|
||||
<para>Find below the <context-param/> configuration:</para>
|
||||
|
||||
<programlisting language="xml"><context-param>
|
||||
@@ -115,7 +106,7 @@
|
||||
context parameter, the <classname>ContextLoaderListener</classname> will
|
||||
look for a file called <literal>/WEB-INF/applicationContext.xml</literal>
|
||||
to load. Once the context files are loaded, Spring creates a <ulink
|
||||
url="http://static.springframework.org/spring/docs/2.5.x/api/org/springframework/web/context/WebApplicationContext.html"><classname>WebApplicationContext</classname></ulink>
|
||||
url="http://static.springframework.org/spring/docs/3.0.x/javadoc-api/org/springframework/web/context/WebApplicationContext.html"><classname>WebApplicationContext</classname></ulink>
|
||||
object based on the bean definitions and stores it in the
|
||||
<interface>ServletContext</interface> of the web application.</para>
|
||||
|
||||
@@ -127,7 +118,7 @@
|
||||
<programlisting language="java">WebApplicationContext ctx = WebApplicationContextUtils.getWebApplicationContext(servletContext);</programlisting>
|
||||
|
||||
<para>The <ulink
|
||||
url="http://static.springframework.org/spring/docs/2.5.x/api/org/springframework/web/context/support/WebApplicationContextUtils.html"><classname>WebApplicationContextUtils</classname></ulink>
|
||||
url="http://static.springframework.org/spring/docs/3.0.x/javadoc-api/org/springframework/web/context/support/WebApplicationContextUtils.html"><classname>WebApplicationContextUtils</classname></ulink>
|
||||
class is for convenience, so you don't have to remember the name of the
|
||||
<interface>ServletContext</interface> attribute. Its
|
||||
<emphasis>getWebApplicationContext()</emphasis> method will return
|
||||
@@ -185,7 +176,7 @@
|
||||
|
||||
<para>The easiest way to integrate one's Spring middle-tier with one's
|
||||
JSF web layer is to use the <ulink
|
||||
url="http://static.springframework.org/spring/docs/2.5.x/api/org/springframework/web/jsf/DelegatingVariableResolver.html">
|
||||
url="http://static.springframework.org/spring/docs/3.0.x/javadoc-api/org/springframework/web/jsf/DelegatingVariableResolver.html">
|
||||
<classname>DelegatingVariableResolver</classname></ulink> class. To
|
||||
configure this variable resolver in one's application, one will need to
|
||||
edit one's <emphasis>faces-context.xml</emphasis> file. After the
|
||||
@@ -283,7 +274,7 @@
|
||||
well when mapping one's properties to beans in
|
||||
<emphasis>faces-config.xml</emphasis>, but at times one may need to grab
|
||||
a bean explicitly. The <ulink
|
||||
url="http://static.springframework.org/spring/docs/2.5.x/api/org/springframework/web/jsf/FacesContextUtils.html">
|
||||
url="http://static.springframework.org/spring/docs/3.0.x/javadoc-api/org/springframework/web/jsf/FacesContextUtils.html">
|
||||
<classname>FacesContextUtils</classname></ulink> class makes this easy.
|
||||
It is similar to <classname>WebApplicationContextUtils</classname>,
|
||||
except that it takes a <classname>FacesContext</classname> parameter
|
||||
@@ -341,7 +332,7 @@
|
||||
<title>ContextLoaderPlugin</title>
|
||||
|
||||
<para>The <ulink
|
||||
url="http://static.springframework.org/spring/docs/2.5.x/api/org/springframework/web/struts/ContextLoaderPlugIn.html"><classname>ContextLoaderPlugin</classname></ulink>
|
||||
url="http://static.springframework.org/spring/docs/3.0.x/javadoc-api/org/springframework/web/struts/ContextLoaderPlugIn.html"><classname>ContextLoaderPlugin</classname></ulink>
|
||||
is a Struts 1.1+ plug-in that loads a Spring context file for the Struts
|
||||
<classname>ActionServlet</classname>. This context refers to the root
|
||||
<classname>WebApplicationContext</classname> (loaded by the
|
||||
@@ -412,7 +403,7 @@
|
||||
<title>DelegatingRequestProcessor</title>
|
||||
|
||||
<para>To configure the <ulink
|
||||
url="http://static.springframework.org/spring/docs/2.5.x/api/org/springframework/web/struts/DelegatingRequestProcessor.html">
|
||||
url="http://static.springframework.org/spring/docs/3.0.x/javadoc-api/org/springframework/web/struts/DelegatingRequestProcessor.html">
|
||||
<literal>DelegatingRequestProcessor</literal></ulink> in your
|
||||
<emphasis>struts-config.xml</emphasis> file, override the
|
||||
"processorClass" property in the <controller> element. These
|
||||
@@ -440,7 +431,7 @@
|
||||
<note>
|
||||
<para>If you are using Tiles in your Struts application, you must
|
||||
configure your <controller> with the <ulink
|
||||
url="http://static.springframework.org/spring/docs/2.5.x/api/org/springframework/web/struts/DelegatingTilesRequestProcessor.html"><classname>DelegatingTilesRequestProcessor</classname></ulink>
|
||||
url="http://static.springframework.org/spring/docs/3.0.x/javadoc-api/org/springframework/web/struts/DelegatingTilesRequestProcessor.html"><classname>DelegatingTilesRequestProcessor</classname></ulink>
|
||||
instead.</para>
|
||||
</note>
|
||||
</section>
|
||||
@@ -452,7 +443,7 @@
|
||||
can't use the <classname>DelegatingRequestProcessor</classname> or
|
||||
<classname>DelegatingTilesRequestProcessor</classname> approaches, you
|
||||
can use the <ulink
|
||||
url="http://static.springframework.org/spring/docs/2.5.x/api/org/springframework/web/struts/DelegatingActionProxy.html">
|
||||
url="http://static.springframework.org/spring/docs/3.0.x/javadoc-api/org/springframework/web/struts/DelegatingActionProxy.html">
|
||||
<classname>DelegatingActionProxy</classname></ulink> as the type in
|
||||
your action-mapping.</para>
|
||||
|
||||
@@ -490,7 +481,7 @@
|
||||
is to extend Spring's <classname>Action</classname> classes for Struts.
|
||||
For example, instead of subclassing Struts'
|
||||
<classname>Action</classname> class, you can subclass Spring's <ulink
|
||||
url="http://static.springframework.org/spring/docs/2.5.x/api/org/springframework/web/struts/ActionSupport.html">
|
||||
url="http://static.springframework.org/spring/docs/3.0.x/javadoc-api/org/springframework/web/struts/ActionSupport.html">
|
||||
<classname>ActionSupport</classname></ulink> class.</para>
|
||||
|
||||
<para>The <classname>ActionSupport</classname> class provides additional
|
||||
@@ -519,23 +510,23 @@
|
||||
to the name: <itemizedlist spacing="compact">
|
||||
<listitem>
|
||||
<para><ulink
|
||||
url="http://static.springframework.org/spring/docs/2.5.x/api/org/springframework/web/struts/ActionSupport.html"><classname>ActionSupport</classname></ulink>,</para>
|
||||
url="http://static.springframework.org/spring/docs/3.0.x/javadoc-api/org/springframework/web/struts/ActionSupport.html"><classname>ActionSupport</classname></ulink>,</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para><ulink
|
||||
url="http://static.springframework.org/spring/docs/2.5.x/api/org/springframework/web/struts/DispatchActionSupport.html"><literal>DispatchActionSupport</literal></ulink>,</para>
|
||||
url="http://static.springframework.org/spring/docs/3.0.x/javadoc-api/org/springframework/web/struts/DispatchActionSupport.html"><literal>DispatchActionSupport</literal></ulink>,</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para><ulink
|
||||
url="http://static.springframework.org/spring/docs/2.5.x/api/org/springframework/web/struts/LookupDispatchActionSupport.html"><literal>LookupDispatchActionSupport</literal></ulink>
|
||||
url="http://static.springframework.org/spring/docs/3.0.x/javadoc-api/org/springframework/web/struts/LookupDispatchActionSupport.html"><literal>LookupDispatchActionSupport</literal></ulink>
|
||||
and</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para><ulink
|
||||
url="http://static.springframework.org/spring/docs/2.5.x/api/org/springframework/web/struts/MappingDispatchActionSupport.html"><literal>MappingDispatchActionSupport</literal></ulink>.</para>
|
||||
url="http://static.springframework.org/spring/docs/3.0.x/javadoc-api/org/springframework/web/struts/MappingDispatchActionSupport.html"><literal>MappingDispatchActionSupport</literal></ulink>.</para>
|
||||
</listitem>
|
||||
</itemizedlist></para>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user