Versions Compared

Key

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

Excerpt

A handful of webwork actions and views that use Berkano User. Provides an includable xwork.xml.

Info
titleModule Info

artifactId=user-mgt-webwork

In your main xwork.xml, provided berkano-user-mgt-VERSION.jar is in your classpath, you can do something along the lines of:

Code Block
xml
xml
<include  file="berkano-usermgt-xwork.xml"/>
<package name="usermanagement" namespace="/usermanagement" extends="berkano-usermanagement"/>
<package name="lostpassword" namespace="/lostpassword" extends="berkano-lostpassword/>
<package name="profile" namespace="/profile" extends="berkano-profile"/>

Note that you could also extend a package from your own application (extends="berkano-profile,myapp-package" for instance) and/or define custom interceptor stacks for each package, etc..

You'll also need a valid xwork validation.xml file at the root of your classpath. It is not provided by berkano-user-mgt, so that you can define your own validators for your actions. However, you should make sure you include at least the default ones defined by xwork, or at the very least the one used by berkano-user-mgt. (check the sources for details, then)