Accessing form parameters through messagecontext class

I'm accessing form parameters as given below in java code, but this is not working for us. Please let us know the correct approach.

List<Object> arrFormParams = Arrays.asList(messageContext
				.getVariable("request.formparams.names"));

for (int i = 0; i < arrFormParams.size(); i++) {

...
}
Solved Solved
0 1 409
1 ACCEPTED SOLUTION

Resolved the problem by retrieving the form params like this:

Set<String> arrFormParams = messageContext.getVariable("request.formparams.names");

View solution in original post

1 REPLY 1

Resolved the problem by retrieving the form params like this:

Set<String> arrFormParams = messageContext.getVariable("request.formparams.names");