mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
Fixes issue with posting multiple values
This commit is contained in:
@@ -203,7 +203,11 @@ public class ParametersInterceptor extends MethodFilterInterceptor {
|
||||
String name = entry.getKey();
|
||||
Parameter value = entry.getValue();
|
||||
try {
|
||||
newStack.setParameter(name, value.getValue());
|
||||
if (value.isMultiple()) {
|
||||
newStack.setParameter(name, value.getMultipleValues());
|
||||
} else {
|
||||
newStack.setParameter(name, value.getValue());
|
||||
}
|
||||
} catch (RuntimeException e) {
|
||||
if (devMode) {
|
||||
notifyDeveloperParameterException(action, name, e.getMessage());
|
||||
|
||||
Reference in New Issue
Block a user