• 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:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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
 
Danger, 10,000 volts, very electic .... tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic