You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by yuubouna <yu...@gmail.com> on 2007/02/23 07:55:08 UTC

chainConfig importance

Migrating from sruts 1.2.4 to struts 1.3.5
according to  http://wiki.apache.org/struts/StrutsUpgradeNotes12to13
StrutsUpgradeNotes12to13 
in order for me to use the tiles I must set the chainConfig in web.xml.

my questions are:
1. Even If I don`t set the chainConfig in web.xml my application using tiles
runs fine, I just changed the Tiles DTD to 1.3.0 and I am using the ff tiles
taglib
 <%@ taglib prefix="tiles" uri="http://struts.apache.org/tags-tiles"%>
 <%@ taglib prefix="tiles-el" uri="http://struts.apache.org/tags-tiles-el"%>

2. What can I do with chainConfig? I heard about the commands? how can I set
up command?

Thanks,

yuubouna



-- 
View this message in context: http://www.nabble.com/chainConfig-importance-tf3277330.html#a9114281
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: chainConfig importance

Posted by Niall Pemberton <ni...@gmail.com>.
On 2/23/07, yuubouna <yu...@gmail.com> wrote:
>
> Migrating from sruts 1.2.4 to struts 1.3.5
> according to  http://wiki.apache.org/struts/StrutsUpgradeNotes12to13
> StrutsUpgradeNotes12to13
> in order for me to use the tiles I must set the chainConfig in web.xml.
>
> my questions are:
> 1. Even If I don`t set the chainConfig in web.xml my application using tiles
> runs fine, I just changed the Tiles DTD to 1.3.0 and I am using the ff tiles
> taglib
>  <%@ taglib prefix="tiles" uri="http://struts.apache.org/tags-tiles"%>
>  <%@ taglib prefix="tiles-el" uri="http://struts.apache.org/tags-tiles-el"%>

Struts 1.3.x introduced the new ComposableRequestProcessor (based on
Commons Chain) - which is the default unless you have specified the
processorClass in a controller element. If tiles is still working then
my guess you still have the following defined in your
struts-config.xml (and you're not actually using the new
ComposableRequestProcessor):

<controller processorClass="org.apache.struts.tiles.TilesRequestProcessor" />

You need to remove that entry and add the following to your web.xml

<init-param>
         <param-name>chainConfig</param-name>
         <param-value>org/apache/struts/tiles/chain-config.xml</param-value>
</init-param>

All this is on the upgrade page though:

  http://wiki.apache.org/struts/StrutsUpgradeNotes12to13

> 2. What can I do with chainConfig? I heard about the commands? how can I set
> up command?

Look at the chain configs shipped with struts (they're in the jars).

Niall

> Thanks,
>
> yuubouna

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org