Package org.apache.struts.scripting
Class StrutsInfo
java.lang.Object
org.apache.struts.scripting.StrutsInfo
Holds Struts objects.
-
Constructor Summary
ConstructorsConstructorDescriptionStrutsInfo(ScriptAction action, ActionMapping mapping, ActionForm form, MessageResources res) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGets the action instance.getForm()Gets the action form.Gets the forward object.Gets the action mapping.Gets the message resources.voidsetAction(ScriptAction action) Sets the action instance.voidsetForm(ActionForm form) Sets the action form.voidSets the action forward object.voidSets the forward name.voidsetMapping(ActionMapping mapping) Sets the action mapping.voidSets the message resources.
-
Constructor Details
-
StrutsInfo
public StrutsInfo(ScriptAction action, ActionMapping mapping, ActionForm form, MessageResources res) Constructor.- Parameters:
action- The action instancemapping- The action mappingform- The action formres- The message resources for the current locale
-
-
Method Details
-
setForwardName
Sets the forward name.- Parameters:
f- The forward name
-
getForward
Gets the forward object. If none is set, it tries to find the set forward name.- Returns:
- The action forward
-
setForward
Sets the action forward object.- Parameters:
f- The action forward
-
setForm
Sets the action form.- Parameters:
form- The action form
-
setMapping
Sets the action mapping.- Parameters:
mapping- The action mapping
-
setAction
Sets the action instance.- Parameters:
action- The Struts action
-
setMessages
Sets the message resources.- Parameters:
res- The message resources
-
getForm
Gets the action form.- Returns:
- The action form
-
getMapping
Gets the action mapping.- Returns:
- The action mapping
-
getAction
Gets the action instance.- Returns:
- The Struts action
-
getMessages
Gets the message resources.- Returns:
- The message resources
-