You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Apache Wiki <wi...@apache.org> on 2006/05/13 06:11:25 UTC
[Struts Wiki] Update of "StrutsUpgradeNotes12to13" by WendySmoak
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Struts Wiki" for change notification.
The following page has been changed by WendySmoak:
http://wiki.apache.org/struts/StrutsUpgradeNotes12to13
The comment on the change is:
Reorganize the configuration section.
------------------------------------------------------------------------------
== 4. Configuration ==
+ === 4.1 CoR Request Processor ===
+
The ''default'' Request Processor for Struts 1.3 is the new Chain (CoR) based ''ComposableRequestProcessor''.
- === 4.1 CoR Request Processor ===
By default, the ComposableRequestProcessor will use a configuration file included in the struts-core JAR, and you won't need to do anything.
+ === 4.2 Original Request Processors ===
+
+ If you want to continue using either of the existing Request Processors (i.e. RequestProcessor or TilesRequestProcessor) then you need to specify this in the controller element of the ''struts-config.xml''
+
+ {{{
+ <controller processorClass="org.apache.struts.action.RequestProcessor" />
+ }}}
+
+ {{{
+ <controller processorClass="org.apache.struts.tiles.TilesRequestProcessor" />
+ }}}
+
+ === 4.3 Tiles ===
+
- However, if you want to use Tiles, you must instruct Struts to use a configuration file included in the struts-tiles JAR instead. To do this:
+ If you want to use Tiles, you must instruct Struts to use a configuration file included in the struts-tiles JAR instead. To do this:
* Add a '''chainConfig''' ''init-param'' in the web.xml pointing to the location of the ''chain-config.xml''
@@ -71, +86 @@
</init-param>
}}}
+ In addition to configuring the ComposableRequestProcessor to use the provided Tiles chain config file, you should also update the '''DOCTYPE''' definition in your ''tiles-defs.xml'' file:
- You can do much more to configure the ComposableRequestProcessor, but those details are outside the scope of this document.
-
- === 4.2 Original Request Processors ===
-
- If you want to continue using either of the existing Request Processors (i.e. RequestProcessor or TilesRequestProcessor) then you need to specify this in the controller element of the ''struts-config.xml''
{{{
- <controller processorClass="org.apache.struts.tiles.TilesRequestProcessor" />
+ <!DOCTYPE tiles-definitions PUBLIC
+ "-//Apache Software Foundation//DTD Tiles Configuration 1.3//EN"
+ "http://struts.apache.org/dtds/tiles-config_1_3.dtd">
}}}
+
+ You can do much more to configure the ComposableRequestProcessor, but those details are outside the scope of this document.
== 5 Deprecations which have been removed ==
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org