HI;
I am starting to play with chains and commands in 1.3.5 and I was
wondering where I initialize the my custom chains ?
I don't want to mess with the request processor, just add a few command
chains of my own.
The cookbook mail reader example from commons.chain uses a context-param
and listener:
<context-param>
<param-name>org.apache.commons.chain.CONFIG_CLASS_RESOURCE</param-name>
<param-value>resources/catalog.xml</param-value>
</context-param>
<listener>
<listener-class>org.apache.commons.chain.web.ChainListener</listener-class>
</listener>
The javadocs for Action servlet and Better Code With Struts 1.3 article
http://www.infonoia.com/en/content.jsp?d=inf.05.06&pr=1
say it should go as an init-param in the servlet section of the web.xml
(from the article)
<init-param>
<param-name>chainConfig</param-name>
<param-value>/WEB-INF/config/chain-config.xml,
/WEB-INF/modules/test/inf/chainTest.xml</param-value>
</init-param>
Do I need to extract the chain-config.xml from the struts-core.jar and
include it in my WEB-INF along with my custom-chain-config.xml
or is struts smart enough to configure itself without me extracting it
and then create my custom catalog?
Thanks in advance.
mas
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]