Check out struts-cookbook-1.3.5.war example app, it contains custom
chain-config.xml with entries relevant to Tiles. Below are portions
from this file:
=== cut here ===
<chain name="process-view">
...
<!--
If you want to use Tiles, uncomment this command, and the one in the
'servlet-exception' chain below, and make sure you have the
struts-tiles JAR included in your web application.
<command
className="org.apache.struts.tiles.commands.TilesPreProcessor"/>
-->
...
</chain>
...
<chain name="servlet-exception">
...
<!--
If you want to use Tiles, uncomment this command, and the one in the
'servlet-standard' chain below. This one is needed to allow Tiles to
be used from global exception handlers.
<command
className="org.apache.struts.chain.servlet.TilesPreProcessor"/>
-->
...
</chain>
=== cut here ===
On 10/17/06, Mikolaj Rydzewski <[EMAIL PROTECTED]> wrote:
Hi,
I wanted to migrate my struts/tiles application from struts 1.2 to
struts 1.3 to make use of its new feature: chain of responsibility.
The old way of using tiles with struts was to override default request
processor with special one designed for tiles.
In the new way I should somehow "inject" new command into chain of
commands to make tiles work.
Unfortunately I cannot find anywhere in the docs how could it be done.
Javadoc
http://struts.apache.org/1.x/struts-tiles/apidocs/org/apache/struts/tiles/commands/TilesPreProcessor.html
does not explain how to inject this command (should I copy/paste
original chain config into the new one?).
--
Mikolaj Rydzewski <[EMAIL PROTECTED]> http://ceti.pl/~miki/
PGP KeyID: 8b12ab02
There are three kinds of people: men, women and unix.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]