| org.apache.cocoon.acting.AbstractAction org.apache.cocoon.acting.AbstractConfigurableAction org.apache.cocoon.acting.ConfigurableComposerAction org.apache.cocoon.acting.ServerPagesAction
ServerPagesAction | public class ServerPagesAction extends ConfigurableComposerAction implements Disposable,ThreadSafe(Code) | | Allows actions to be written in XSP. This allows to use XSP to produce
XML fragments that are later reused in generators.
This action works in concert with the "action" logicheet, that offers
actions-related services such as redirect or result map access, and the
"capture" logicsheet that allows to capture parts of XSP-generated XML
either as an XMLizable containing serialized SAX events,
or as a DOM Node .
As for generators, the XSP file name is set using the "src" attribute.
This action accepts a single parameter, "output-attribute", which names
the request attribute where the XSP-generated document will be stored
(as an XMLizable ). If this parameter is omitted, the
XSP result is discarded (often the case when inner fragments are captured
with the "capture" logicsheet").
When "output-attribute" is set, the action status defaults to "success",
meaning child sitemap statements are executed. This allows to use an
existing XSP without modification with this action.
When "output-attribute" isn't set, the action status defaults to "failure".
The XSP must then use the "action" logicsheet to set its status.
Example :
<action type="serverpages" src="myAction.xsp">
<map:param name="output-attribute" value="xsp-action-result"/>
...
</action>
author: Sylvain Wallez version: CVS $Id: ServerPagesAction.java 433543 2006-08-22 06:22:54Z crossley $ |
ACTION_RESULT_OBJECT | final public static String ACTION_RESULT_OBJECT(Code) | | |
ACTION_SUCCESS_OBJECT | final public static String ACTION_SUCCESS_OBJECT(Code) | | |
REDIRECTOR_OBJECT | final public static String REDIRECTOR_OBJECT(Code) | | |
generatorHandler | ComponentHandler generatorHandler(Code) | | |
configure | public void configure(Configuration conf) throws ConfigurationException(Code) | | |
dispose | public void dispose()(Code) | | |
Fields inherited from org.apache.cocoon.acting.ConfigurableComposerAction | protected ComponentManager manager(Code)(Java Doc)
|
Methods inherited from org.apache.cocoon.acting.ConfigurableComposerAction | public void compose(ComponentManager manager) throws ComponentException(Code)(Java Doc)
|
Fields inherited from org.apache.cocoon.acting.AbstractConfigurableAction | protected HashMap settings(Code)(Java Doc)
|
Methods inherited from org.apache.cocoon.acting.AbstractConfigurableAction | public void configure(Configuration conf) throws ConfigurationException(Code)(Java Doc)
|
Fields inherited from org.apache.cocoon.acting.AbstractAction | final protected static Map EMPTY_MAP(Code)(Java Doc)
|
|
|