alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Struts example source code file (xwork-autowire.xml)

This example Struts source code file (xwork-autowire.xml) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Struts tags/keywords

doctype, doctype, group//xwork, group//xwork, opensymphony, opensymphony, public, public

The Struts xwork-autowire.xml source code

<!DOCTYPE xwork PUBLIC "-//OpenSymphony Group//XWork 2.0//EN" "http://www.opensymphony.com/xwork/xwork-2.0.dtd">
<xwork>
	<bean type="com.opensymphony.xwork2.ActionProxyFactory" name="default" class="com.opensymphony.xwork2.DefaultActionProxyFactory" />
	<bean type="com.opensymphony.xwork2.ObjectFactory" name="default" class="com.opensymphony.xwork2.spring.SpringObjectFactory" />
	<constant name="applicationContextPath" value="com/opensymphony/xwork2/spring/actionContext-spring.xml" />
    <package name="default">
        <result-types>
            <result-type name="null"
class="com.opensymphony.xwork2.result.NullResult" default="true"/>
        </result-types>

        <interceptors>
            <interceptor name="autowire" class="com.opensymphony.xwork2.spring.interceptor.ActionAutowiringInterceptor">
              <param name="autowireStrategy">@org.springframework.beans.factory.config.AutowireCapableBeanFactory@AutowireCapableBeanFactory.AUTOWIRE_BY_TYPE
            </interceptor>
        </interceptors>

        <default-interceptor-ref name="autowire"/>

       <action name="simpleAction" class="com.opensymphony.xwork2.SimpleAction"/>
    </package>
</xwork>

Other Struts examples (source code examples)

Here is a short list of links related to this Struts xwork-autowire.xml source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.