mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
WW-4663 Fallback to old behaviour if there is no action defined
This commit is contained in:
@@ -276,6 +276,15 @@ public class Form extends ClosingUIBean {
|
||||
|
||||
String formActionValue = findString(action);
|
||||
ActionMapping mapping = actionMapper.getMappingFromActionName(formActionValue);
|
||||
|
||||
if (mapping == null) {
|
||||
mapping = actionMapper.getMappingFromActionName((String) getParameters().get("actionName"));
|
||||
}
|
||||
|
||||
if (mapping == null) {
|
||||
return Collections.EMPTY_LIST;
|
||||
}
|
||||
|
||||
String actionName = mapping.getName();
|
||||
|
||||
String methodName = null;
|
||||
|
||||
Reference in New Issue
Block a user