Struts Processors
1. Introduction
These processors allow PresentationServer to be used with the Jakarta Struts framework. In this
configuration, Struts is used for the back-end, generating beans that are serialized
by this generator. One or more PresentationServer pipeline(s) are called to
generate the front-end views. See Using Presentation
Server with Struts for more information.
2. Struts Action Errors Generator
The Struts Action Errors generator looks in the request for a Struts ActionErrors
instance. Struts stores this object whenever an ActionForm's validate() method
returns a non-null value. This generator takes no configuration and its output looks
like the following:
<errors> <error property="errors.header">The following errors where found:</error>
<error property="userGuess">You entered 110. The number must be between 0 and 100
</error> <error property="errors.footer">Please try again.</error>
</errors>
Note
This generator uses the Struts application resources if available.
3. Struts Action Form Generator
The Struts Action Form generator allows PresentationServer to be used with the
Jakarta Struts framework. In
this configuration, Struts is used for the back-end, generating beans that are
serialized by this generator. One or more PresentationServer pipeline(s) are called
to generate the front-end views. See Using Presentation
Server with Struts for more information.
<p:processor name="oxf:struts" xmlns:p="
http://www.orbeon.com/oxf/pipeline"
> <p:output name="data" id="struts"/>
</p:processor>