I've used angular js as front end technology and jersey to create web services in JAVA. My certain forms have fields that belongs to different beans. I know it is not good practice to have two resources in single POST request. Another option left is to use @FormParam
annotation that requires lots of manual work to cast form fields to java objects. I've gone through both questions below.
Asked
Active
Viewed 209 times
0

Community
- 1
- 1

curiousmind
- 185
- 1
- 1
- 8
-
Just combine them into a single JSON object. Why do they need to be separate? – Paul Samsotha Dec 26 '16 at 15:35
-
They both are different entities having parent-child relationship. – curiousmind Dec 27 '16 at 05:22
1 Answers
0
i think ajax is better for you, you can send both POST and GET in the same time first put the ajax code in jquery function after that get the function on element change or click http://api.jquery.com/jquery.ajax/

layouteam
- 51
- 6