• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Google Polymer and ModelAndView object (Spring 4) cannot communicate

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!

I'm trying to build some web pages in JSP (framework Spring MVC 4) using Polymer 1.0.

I would like to see some values from the Java object "User" in the web page but I can't understand how can I do to retrieve these values on Polymer.

First, I set a new object User in the Spring Controller and the method test() will retrieve a ModelAndView object:



After this, I put the ModelAndView object in my custom element in Polymer:


Finally, I create my "custom-element" using Polymer library:



When I launch the webpage, I can't see the value "fname" in the page...why? What I'm doing wrong?

Thanks in advance
reply
    Bookmark Topic Watch Topic
  • New Topic