I have 2 pojo.
- user.java
- userrole.java
i have 1 jsp page called enrolluser.jsp, here i have information about user and userrole pojo. Usually in spring mvc form binding, we can bind form object to only one pojo, how can i map user related fields from jsp to user pojo and user role related fields in jsp to userrole pojo uisng form binding functionality.
I have searched the net but could not find a suitable answer.
How can i achieve this?