Please enable JavaScript.
Coggle requires JavaScript to display documents.
Struts2 (Action configuration (Result: name of the next action (Type:…
Struts2
Action configuration
Name to be called in <s:form>
Class: location of Action
Result: name of the next action
Type: redirect/dispatcher
Param
Exception-mapping if needed
Validation
include <s:head />
Action Extends the
ActionSupport class
Configure struts.xml
for "input" result
Create ActionClassName-validation.xml
Outstanding features
OGNL
is a Filter
The data that is to be displayed
is pulled from action
Annotation
Configure web.xml
<param-name>actionPackages</param-name>
<param-value>thiennh.struts</param-value>
Action
Results
Result
Location
Name
value (the same as name in xml)
Validation
Type
key/message
request = ServletActionContext.getRequest()
session = ActionContext.getContext.getSession()