On 2/23/07, yuubouna <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]