aspose file tools*
The moose likes Spring and the fly likes User Spring Bean property in a web page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "User Spring Bean property in a web page" Watch "User Spring Bean property in a web page" New topic
Author

User Spring Bean property in a web page

Brian Enderle
Greenhorn

Joined: May 04, 2009
Posts: 2
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
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

then put it into the Session/Model???

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: User Spring Bean property in a web page