public class Struts1Factory extends Object
Constructor and Description |
---|
Struts1Factory(com.opensymphony.xwork2.config.Configuration config) |
Modifier and Type | Method and Description |
---|---|
void |
convertErrors(org.apache.struts.action.ActionErrors errors,
Object action) |
org.apache.struts.action.ActionForward |
createActionForward(com.opensymphony.xwork2.config.entities.ResultConfig cfg)
Create a Struts 1.x ActionForward from an XWork ResultConfig.
|
org.apache.struts.action.ActionMapping |
createActionMapping(com.opensymphony.xwork2.config.entities.ActionConfig cfg)
Create a Struts 1.x ActionMapping from an XWork ActionConfig.
|
org.apache.struts.config.ExceptionConfig |
createExceptionConfig(com.opensymphony.xwork2.config.entities.ExceptionMappingConfig cfg)
Create a Struts 1.x ExceptionConfig from an XWork ExceptionMappingConfig.
|
org.apache.struts.config.ModuleConfig |
createModuleConfig(String packageName)
Create a Struts 1.x ModuleConfig based on an XWork package configuration.
|
public Struts1Factory(com.opensymphony.xwork2.config.Configuration config)
public org.apache.struts.config.ModuleConfig createModuleConfig(String packageName)
packageName
- the name of the XWork package configuration to wrap. This becomes the module prefix for the
newly-created ModuleConfig.public org.apache.struts.action.ActionMapping createActionMapping(com.opensymphony.xwork2.config.entities.ActionConfig cfg)
cfg
- the XWork ActionConfig.public org.apache.struts.action.ActionForward createActionForward(com.opensymphony.xwork2.config.entities.ResultConfig cfg)
cfg
- the XWork ResultConfig.public org.apache.struts.config.ExceptionConfig createExceptionConfig(com.opensymphony.xwork2.config.entities.ExceptionMappingConfig cfg)
cfg
- the XWork ExceptionMappingConfig.public void convertErrors(org.apache.struts.action.ActionErrors errors, Object action)
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.