xdoclet.modules.apache.struts

Class StrutsConfigXmlSubTask

public class StrutsConfigXmlSubTask extends XmlSubTask

Generates struts-config.xml deployment descriptor.

Version: $Revision: 1.12 $

Author: Dmitri Colebatch Nick Heudecker

UNKNOWN: September 2, 2001 display-name = "struts-config.xml" name = "strutsconfigxml" parent = "xdoclet.modules.web.WebDocletTask" ignore = "true" file = "struts-data-sources.xml" relates-to = "struts-config.xml" description = "An XML document * containing the optional data-sources element." file = "struts-forms.xml" relates-to = "struts-config.xml" description = "An XML unparsed entity * containing form-bean elements, for additional non-XDoclet forms." file = "global-exceptions.xml" relates-to = "struts-config.xml" description = "An XML document * containing the optional global-exceptions element." file = "global-forwards.xml" relates-to = "struts-config.xml" description = "An XML document * containing the optional global-forwards element." file = "struts-actions.xml" relates-to = "struts-config.xml" description = "An XML unparsed entity * containing action elements, for additional non-XDoclet actions." file = "actions.xml" relates-to = "struts-config.xml" description = "Deprecated (renamed to * struts-actions.xml). Still used, but only for backwards compatibility." file = "struts-controller.xml" relates-to = "struts-config.xml" description = "An XML document * containing the optional controller element." file = "struts-message-resources.xml" relates-to = "struts-config.xml" description = "An XML unparsed * entity containing any message-resources elements." file = "struts-plugins.xml" relates-to = "struts-config.xml" description = "An XML unparsed entity * containing any plug-in elements."

Nested Class Summary
static classStrutsConfigXmlSubTask.StrutsVersion
Constructor Summary
StrutsConfigXmlSubTask()
Describe what the StrutsConfigXmlSubTask constructor does
Method Summary
voidexecute()
Generate struts-config.xml
StringgetController()
StringgetVersion()
Gets the Version attribute of the StrutsConfigXmlSubTask object
voidsetController(String controller)
Sets fully qualified class to use when instantiating ActionMapping objects.
voidsetVersion(StrutsConfigXmlSubTask.StrutsVersion version)
Sets the struts version to use.

Constructor Detail

StrutsConfigXmlSubTask

public StrutsConfigXmlSubTask()
Describe what the StrutsConfigXmlSubTask constructor does

Method Detail

execute

public void execute()
Generate struts-config.xml

Throws: XDocletException

getController

public String getController()

getVersion

public String getVersion()
Gets the Version attribute of the StrutsConfigXmlSubTask object

Returns: The Version value

setController

public void setController(String controller)
Sets fully qualified class to use when instantiating ActionMapping objects.

Parameters: controller

setVersion

public void setVersion(StrutsConfigXmlSubTask.StrutsVersion version)
Sets the struts version to use. Legal values are "1.0", "1.1" and "1.2".

Parameters: version

UNKNOWN: "No. Default is '1.0'".