• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

User Spring Bean property in a web page

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have the following bean defined in my project:

<bean id="patronInformation" class="org.oclc.merlins.circulation.ui.patron.PatronSummaryController">
<property name="asyncView" value="jsonView"/>
<property name="currentUser" ref="currentUser"/>
<property name="services" ref="managedServices"/>
</bean>

I would like to use the property "currentUser" in my webpage (we are using YUI 3 and FreeMarker if that makes a difference).

If I understand Spring (and our project) correctly, currentUser is assigned some data when the user logs in. So within 'currentUser' is the data associated with the user. I would like to use this to display the current user name on the webpage.

TIA
Brian Enderle
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
then put it into the Session/Model???

Mark
 
reply
    Bookmark Topic Watch Topic
  • New Topic