Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment:

Update formatting and nomenclature

Description

To make it easy to manage large scale development (lots of actions + configuration), WebWork allows you to include other configuration files from xwork.xml :A popular strategy is "divide and conquer". The framework lets you apply "divide and conquer" to configuration files using the include element.

Code Block
xml
xml

<!DOCTYPE xwork PUBLIC "-//OpenSymphony Group//XWork 1.1.1//EN" "http://www.opensymphony.com/xwork/xwork-1.1.1.dtd">

<xwork>
    <include file="webworkaction-default.xml"/>
    <include file="userHome-config.xml"/>
    <include file="shoppingcartHello-config.xml"/>
    <include file="productSimple-config.xml"/>
    ....<include file="Pojo-config.xml"/>
</xwork>

The Each included files file must be in the same format as xworkaction.xml (with , including the doctype and everything) and . The include files can be placed anywhere on classpath (usually in /WEB-INF/classes or jar files in /WEB-INF/lib).the classpath.

In a large-team environment, the include files can be used to organize different modules of the application that are being developed by different team members. Most of the content here provided by Matt Dowell <matt.dowell@notiva.com>