0

I'm trying to create a CRUD system on a list and I need to pass the list from the controller of spring to ANGULARJS controller. Can someone point to the right direction pls? P.S: I already can receive the list and I can manipulate it in EL language

3
  • it maybe easier to answer you question, if you have a concrete question Commented Jan 28, 2016 at 15:25
  • Well I just need someone to point to the right direction Commented Jan 28, 2016 at 15:40
  • Maybe to make you understand, I need to send a list from spring controller and then receive in the jsp page with angularjs Commented Jan 28, 2016 at 15:41

2 Answers 2

1

You need to use some JSON necoding library and let it encode your objects when you return them from your controller. Jackson might help.

Sign up to request clarification or add additional context in comments.

4 Comments

Thanks, so I need to set the response as Json in spring controller?
And while we're at it, can you tell me how to receive it in angularjs controller, cause it's driving me nuts
You need to define an object in terms of angular. Try this: medium.com/opinionated-angularjs/…
Thanks a lot for your help
0

I am an Angular developer and I work with a Spring Java team.

I believe they use Spring BOOT

http://projects.spring.io/spring-boot/

Spring BOOT produces RESTful APIs and our Angular application makes HTTP requests to those APIs and Spring returns JSON responses.

1 Comment

Thank you for your reply, but what I found was that if the Jackson api is set in the path, SPRING will detect it and it will parse the response as JSON automatically.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.