0

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.

JAX-RS Post multiple objects

Passing Two Objects in Rest Api using Jersey

Community
  • 1
  • 1
curiousmind
  • 185
  • 1
  • 1
  • 8

1 Answers1

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