struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phillip Grenier" <pgren...@ststravel.com>
Subject RE: [S2] extending struts.xml
Date Mon, 27 Aug 2007 16:01:29 GMT
Was a xworks 2.0.1 issue. Replaced with xworks 2.0.4.jar 

-----Original Message-----
From: Phillip Grenier [mailto:pgrenier@ststravel.com] 
Sent: Monday, August 27, 2007 9:10 AM
To: Struts Users Mailing List
Subject: [S2] extending struts.xml

When I try to extend any package located in the struts.xml file from any
of my included xml files that contain other packages It kills the parser
and gives a 404 error. 
ex.
// struts.xml
<?xml....
<!DOCTYPE----
<struts>
    <constant name="struts.enable.DynamicMethodInvocation" value="false"
/>
    <constant name="struts.devMode" value="true" />
 
    <package name="default" extends="struts-default">
        <action name="Index">
            <result type="redirect-action">test/Index</result>
        </action>
     </package>
     <include file="test/test.s2.xml"/>
</struts>
 
// test.s2.xml
<?xml....
<!DOCTYPE----
<struts>
    <package name="test" extends="default" namespace="/test">
        <action name="Index">
            <result type="redirect-action">test/Index</result>
        </action>
     </package>
</struts>
 
This works if I change extends to equal struts-default. Is there a
configuration file to fix this, I just switched the jars to the 2.0.9
 
Thanks,
- Phillip

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


Mime
View raw message