I'm
not sure about this... this sounds more complicated to me than explicitly
telling it what to look for... you have to read a lot more docs for what the
defaults are, etc. With the stuff I did to make the default stuff pulled out
into a separate file, here's what the xwork.xml for the Config Browser app looks
like:
<!DOCTYPE xwork PUBLIC "-//OpenSymphony Group//XWork 1.0//EN" "http://www.opensymphony.com/xwork/xwork-1.0.dtd">
<xwork>
<include file="webwork-default.xml"/> <package name="default" extends="webwork-default"
namespace="/">
<interceptors> <interceptor-stack name="config-browser-default"> <interceptor-ref name="component"/> <interceptor-ref name="validationWorkflowStack"/> </interceptor-stack> </interceptors> <default-interceptor-ref name="config-browser-default"/> <global-results> <result name="error" type="velocity">error.vm</result> </global-results> <action name="namespace" class="com.opensymphony.webwork.config_browser.NamespaceAction"> <result type="velocity" name="success">namespaces.vm</result> <result type="velocity" name="input">namespaces.vm</result> </action> <action name="actionNames" class="com.opensymphony.webwork.config_browser.ActionNamesAction"> <result type="velocity" name="success">actionNames.vm</result> <result type="velocity" name="input">actionNames.vm</result> </action> <action name="showConfig" class="com.opensymphony.webwork.config_browser.ShowConfigAction"> <result type="velocity" name="success">showConfig.vm</result> <result type="velocity" name="input">showConfig.vm</result> </action> </package> </xwork> That's
the whole thing. It's pretty simple, I think.
Jason
|
Title: Message
- [OS-webwork] Simplicity of WW2 John Patterson
- Re: [OS-webwork] Simplicity of WW2 Jason Carreira
- Re: [OS-webwork] Simplicity of WW2 John Patterson
- RE: [OS-webwork] Simplicity of WW2 Jason Carreira
- RE: [OS-webwork] Simplicity of WW2 Cameron Braid
- RE: [OS-webwork] Simplicity of WW2 Lars Fischer
- RE: [OS-webwork] Simplicity of WW2 Jason Carreira
- Re: [OS-webwork] Simplicity of WW2 John Patterson
- RE: [OS-webwork] Simplicity of WW2 Jason Carreira
- Re: [OS-webwork] Simplicity of WW2 boxed
- Re: [OS-webwork] Simplicity of WW2 Rene Gielen
- Re: [OS-webwork] Simplicity of WW2 Joseph Ottinger