You're
correct, but there's more. The included files need to be the complete same
format as the main xwork.xml file with the DTD declaration and <xwork>
element as the root element. It needs to have this
structure:
<!DOCTYPE xwork PUBLIC
"-//OpenSymphony Group//XWork 1.0//EN"
"http://www.opensymphony.com/xwork/xwork-1.0.dtd"
>
"-//OpenSymphony Group//XWork 1.0//EN"
"http://www.opensymphony.com/xwork/xwork-1.0.dtd"
>
<xwork>
<package>
...
</package>
</xwork>
You
can also put other includes in your included file, etc...
-----Original Message-----I believe all actions need to belong to a package, because the the tie to the namespace. If there is no namespace, then it should be in the default package. Someone correct me if I'm working.
From: Rick Slasa [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 9:36 PM
To: [EMAIL PROTECTED]
Subject: Re: [OS-webwork] example using xwork's <include> tag
HTH,
rick
Francisco Hernandez wrote:
can someone put an example on how to use the include tag in xwork.xml?
i have my xwork.xml file that defines interceptors results and result stacks, then right after that i've got <include file="myActions.xml"/>
in my myActions.xml i've got:
<action name="test" class="actions.TestAction">
<result name="success" type="velocity">/WEB-INF/views/test.vm</result>
<interceptor-ref name="defaultStack"/>
</action>
it doesnt work though, can someone tell me what im doing wrong here?
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork