Is there a way to call two classes in a controller? when i tried to do it, it gives me the following exception : java.lang.IllegalArgumentException: Invalid type {}, should be {}.
Here is my code :
public void ChangeTest(ActionRequest request , ActionResponse response) {
FirstClass fc = request.getContext().asType(FirstClass .class);
SecondClass sc = request.getContext().asType(SecondClass.class);
BigDecimal test = service.ChangeTest(fc,sc);
response.setFlash(test.toString());
}