Source

webwork / docs / wikidocs / webwork-default.xml.html

<html>
    <head>
        <title>WebWork 2 : webwork-default.xml</title>
	    <link rel="stylesheet" href="styles/site.css" type="text/css" />
        <META http-equiv="Content-Type" content="text/html; charset=UTF-8">	    
    </head>

    <body>
	    <table class="pagecontent" border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#ffffff">
		    <tr>
			    <td valign="top" class="pagebody">
				    <div class="pageheader">
					    <span class="pagetitle">
                            WebWork 2 : webwork-default.xml
                                                    </span>
				    </div>
				    <div class="pagesubheading">
					    This page last changed on May 14, 2004 by <font color="#0050B2">mgreer</font>.
				    </div>

				    <p class="paragraph">A base configuration file named webwork-default.xml is included in the webwork jar file. This file may be included at the top of your xwork.xml file to include the standard configuration settings without having to copy them, like so:</p><div class="code"><div class="codeContent">
<pre><span class="xml&#45;tag">&lt;&#33;DOCTYPE xwork PUBLIC <span class="xml&#45;quote">&quot;&#45;//OpenSymphony Group//XWork 1.0//EN&quot;</span>&#160;<span class="xml&#45;quote">&quot;&#104;ttp://www.opensymphony.com/xwork/xwork&#45;1.0.dtd&quot;</span>&gt;</span><span class="xml&#45;tag">&lt;xwork&gt;</span>&#10;   <span class="xml&#45;tag">&lt;include file=<span class="xml&#45;quote">&quot;webwork&#45;default.xml&quot;</span>/&gt;</span>    &#10;    &#10;   <span class="xml&#45;tag">&lt;package name=<span class="xml&#45;quote">&quot;default&quot;</span> extends=<span class="xml&#45;quote">&quot;webwork&#45;default&quot;</span>&gt;</span>&#10;    ...&#10;    <span class="xml&#45;tag">&lt;/package&gt;</span>&#10;<span class="xml&#45;tag">&lt;/xwork&gt;</span></pre>
</div></div><p class="paragraph">The contents of webwork-default.xml as of 2.1 are here:</p><div class="code"><div class="codeContent">
<pre><span class="xml&#45;tag">&lt;&#33;DOCTYPE xwork PUBLIC <span class="xml&#45;quote">&quot;&#45;//OpenSymphony Group//XWork 1.0//EN&quot;</span>&#160;<span class="xml&#45;quote">&quot;&#104;ttp://www.opensymphony.com/xwork/xwork&#45;1.0.dtd&quot;</span>&gt;</span>&#10;&#10;<span class="xml&#45;tag">&lt;xwork&gt;</span>&#10;    <span class="xml&#45;tag">&lt;package name=<span class="xml&#45;quote">&quot;webwork&#45;default&quot;</span>&gt;</span>&#10;        <span class="xml&#45;tag">&lt;result&#45;types&gt;</span>&#10;            <span class="xml&#45;tag">&lt;result&#45;type name=<span class="xml&#45;quote">&quot;dispatcher&quot;</span> class=<span class="xml&#45;quote">&quot;com.opensymphony.webwork.dispatcher.ServletDispatcherResult&quot;</span> default=<span class="xml&#45;quote">&quot;true&quot;</span>/&gt;</span>&#10;            <span class="xml&#45;tag">&lt;result&#45;type name=<span class="xml&#45;quote">&quot;redirect&quot;</span> class=<span class="xml&#45;quote">&quot;com.opensymphony.webwork.dispatcher.ServletRedirectResult&quot;</span>/&gt;</span>&#10;            <span class="xml&#45;tag">&lt;result&#45;type name=<span class="xml&#45;quote">&quot;velocity&quot;</span> class=<span class="xml&#45;quote">&quot;com.opensymphony.webwork.dispatcher.VelocityResult&quot;</span>/&gt;</span>&#10;            <span class="xml&#45;tag">&lt;result&#45;type name=<span class="xml&#45;quote">&quot;chain&quot;</span> class=<span class="xml&#45;quote">&quot;com.opensymphony.xwork.ActionChainResult&quot;</span>/&gt;</span>&#10;            <span class="xml&#45;tag">&lt;result&#45;type name=<span class="xml&#45;quote">&quot;xslt&quot;</span> class=<span class="xml&#45;quote">&quot;com.opensymphony.webwork.views.xslt.XSLTResult&quot;</span>/&gt;</span>&#10;            <span class="xml&#45;tag">&lt;result&#45;type name=<span class="xml&#45;quote">&quot;jasper&quot;</span> class=<span class="xml&#45;quote">&quot;com.opensymphony.webwork.views.jasperreports.JasperReportsResult&quot;</span>/&gt;</span>&#10;	    <span class="xml&#45;tag">&lt;result&#45;type name=<span class="xml&#45;quote">&quot;freemarker&quot;</span> class=<span class="xml&#45;quote">&quot;com.opensymphony.webwork.views.freemarker.FreemarkerResult&quot;</span>/&gt;</span>&#10;        <span class="xml&#45;tag">&lt;/result&#45;types&gt;</span>&#10;&#10;        <span class="xml&#45;tag">&lt;interceptors&gt;</span>&#10;            <span class="xml&#45;tag">&lt;interceptor name=<span class="xml&#45;quote">&quot;timer&quot;</span> class=<span class="xml&#45;quote">&quot;com.opensymphony.xwork.interceptor.TimerInterceptor&quot;</span>/&gt;</span>&#10;            <span class="xml&#45;tag">&lt;interceptor name=<span class="xml&#45;quote">&quot;logger&quot;</span> class=<span class="xml&#45;quote">&quot;com.opensymphony.xwork.interceptor.LoggingInterceptor&quot;</span>/&gt;</span>&#10;            <span class="xml&#45;tag">&lt;interceptor name=<span class="xml&#45;quote">&quot;chain&quot;</span> class=<span class="xml&#45;quote">&quot;com.opensymphony.xwork.interceptor.ChainingInterceptor&quot;</span>/&gt;</span>&#10;            <span class="xml&#45;tag">&lt;interceptor name=<span class="xml&#45;quote">&quot;static&#45;params&quot;</span> class=<span class="xml&#45;quote">&quot;com.opensymphony.xwork.interceptor.StaticParametersInterceptor&quot;</span>/&gt;</span>&#10;            <span class="xml&#45;tag">&lt;interceptor name=<span class="xml&#45;quote">&quot;params&quot;</span> class=<span class="xml&#45;quote">&quot;com.opensymphony.xwork.interceptor.ParametersInterceptor&quot;</span>/&gt;</span>&#10;            <span class="xml&#45;tag">&lt;interceptor name=<span class="xml&#45;quote">&quot;model&#45;driven&quot;</span> class=<span class="xml&#45;quote">&quot;com.opensymphony.xwork.interceptor.ModelDrivenInterceptor&quot;</span>/&gt;</span>&#10;            <span class="xml&#45;tag">&lt;interceptor name=<span class="xml&#45;quote">&quot;component&quot;</span> class=<span class="xml&#45;quote">&quot;com.opensymphony.xwork.interceptor.component.ComponentInterceptor&quot;</span>/&gt;</span>&#10;            <span class="xml&#45;tag">&lt;interceptor name=<span class="xml&#45;quote">&quot;token&quot;</span> class=<span class="xml&#45;quote">&quot;com.opensymphony.webwork.interceptor.TokenInterceptor&quot;</span>/&gt;</span>&#10;            <span class="xml&#45;tag">&lt;interceptor name=<span class="xml&#45;quote">&quot;token&#45;session&quot;</span> class=<span class="xml&#45;quote">&quot;com.opensymphony.webwork.interceptor.TokenSessionStoreInterceptor&quot;</span>/&gt;</span>&#10;            <span class="xml&#45;tag">&lt;interceptor name=<span class="xml&#45;quote">&quot;validation&quot;</span> class=<span class="xml&#45;quote">&quot;com.opensymphony.xwork.validator.ValidationInterceptor&quot;</span>/&gt;</span>&#10;            <span class="xml&#45;tag">&lt;interceptor name=<span class="xml&#45;quote">&quot;workflow&quot;</span> class=<span class="xml&#45;quote">&quot;com.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor&quot;</span>/&gt;</span>&#10;            <span class="xml&#45;tag">&lt;interceptor name=<span class="xml&#45;quote">&quot;servlet&#45;config&quot;</span> class=<span class="xml&#45;quote">&quot;com.opensymphony.webwork.interceptor.ServletConfigInterceptor&quot;</span>/&gt;</span>&#10;            <span class="xml&#45;tag">&lt;interceptor name=<span class="xml&#45;quote">&quot;prepare&quot;</span> class=<span class="xml&#45;quote">&quot;com.opensymphony.xwork.interceptor.PrepareInterceptor&quot;</span>/&gt;</span>&#10;            <span class="xml&#45;tag">&lt;interceptor name=<span class="xml&#45;quote">&quot;conversionError&quot;</span> class=<span class="xml&#45;quote">&quot;com.opensymphony.webwork.interceptor.WebWorkConversionErrorInterceptor&quot;</span>/&gt;</span>&#10;            <span class="xml&#45;tag">&lt;interceptor&#45;stack name=<span class="xml&#45;quote">&quot;defaultStack&quot;</span>&gt;</span>&#10;                <span class="xml&#45;tag">&lt;interceptor&#45;ref name=<span class="xml&#45;quote">&quot;static&#45;params&quot;</span>/&gt;</span>&#10;                <span class="xml&#45;tag">&lt;interceptor&#45;ref name=<span class="xml&#45;quote">&quot;params&quot;</span>/&gt;</span>&#10;                <span class="xml&#45;tag">&lt;interceptor&#45;ref name=<span class="xml&#45;quote">&quot;conversionError&quot;</span>/&gt;</span>&#10;            <span class="xml&#45;tag">&lt;/interceptor&#45;stack&gt;</span>&#10;            <span class="xml&#45;tag">&lt;interceptor&#45;stack name=<span class="xml&#45;quote">&quot;validationWorkflowStack&quot;</span>&gt;</span>&#10;                <span class="xml&#45;tag">&lt;interceptor&#45;ref name=<span class="xml&#45;quote">&quot;defaultStack&quot;</span>/&gt;</span>&#10;                <span class="xml&#45;tag">&lt;interceptor&#45;ref name=<span class="xml&#45;quote">&quot;validation&quot;</span>/&gt;</span>&#10;                <span class="xml&#45;tag">&lt;interceptor&#45;ref name=<span class="xml&#45;quote">&quot;workflow&quot;</span>/&gt;</span>&#10;            <span class="xml&#45;tag">&lt;/interceptor&#45;stack&gt;</span>&#10;        <span class="xml&#45;tag">&lt;/interceptors&gt;</span>&#10;    <span class="xml&#45;tag">&lt;/package&gt;</span>&#10;<span class="xml&#45;tag">&lt;/xwork&gt;</span></pre>
</div></div><p class="paragraph">This file defines all of the default bundled results and interceptors and two interceptor stacks, defaultStack and validationWorkflowStack, which you can use either as-is or as a basis for your own application-specific interceptor stacks.   Notice the name of the package is &quot;webwork-default&quot;.</p>

				    
                    			    </td>
		    </tr>
	    </table>
	    <table border="0" cellpadding="0" cellspacing="0" width="100%">
			<tr>
				<td height="12" background="border/border_bottom.gif"><img src="border/spacer.gif" width="1" height="1" border="0"/></td>
			</tr>
		    <tr>
			    <td align="center"><font color="grey">Document generated by Confluence on Oct 15, 2004 20:55</font></td>
		    </tr>
	    </table>
    </body>
</html>