HI
I dont know about Cactus . But Struts 1.2 onwards only more than one
struts-config files are allowed that to be in this manner
servlet
servlet-nameaction/servlet-name
servlet-classcom.struts.action.ActionServlet/servlet-class
/// THis is for Defalut
I have two struts-config.xml files. One is Struts default struts-config.xml and
the other one is called
struts-my.xml. and I have configued these two xml files in web.xml so that
ActionServlet can take both struts-config.xml
and struts-my.xml. See following:
servlet
I think by default the CactusStrutsTestCase reads the /WEB-INF/struts-
config.xml only. If you have multiple config files you would have to set the
appropriate config file in your test method. For eg:
public void testDisplay() throws Exception {
It's been rather a long time since I used Cactus so I can't rememner the
details of how you set things up, but are you sure that struts-my.xml is
being read in when you run your cactus tests?
L.
Carl Smith wrote:
I have two struts-config.xml files. One is Struts default struts-config.xml and
4 matches
Mail list logo