I'm ... stuck oO
I have parameters in an external request:
param[62537]=abc; param[20356]=cde; param[92837]=fgh;
And I'm looking for any way to bind them, i.e. with DynamicForm .
I can get param with:
DynamicForm dynamicForm = form().bindFromRequest(); String firstParam = dynamicForm.field("param[62537]").value();
But, of course, I do not know the indexes, because they are selected in the client-side form created by an independent application.
When I try to use:
String[] firstParam = dynamicForm.field("param").value(); // it NULL String[] firstParam = dynamicForm.get("param"); // it NULL
or even
String[] params = request().body().asFormUrlEncoded().get("param");
Am I missing something really basic, or is Play simply unable to do this?
source share