File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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: 17249
    
    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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: User Spring Bean property in a web page
 
Similar Threads
Spring-Hibernate transaction management
spring+hibernate: insert data into database(one to many)
XML name space error in Spring data JPA hibernate applicationContext.xml
How to Use Spring AOP for Auditing?
com.sybase.jdbc2.SybConnection: SET CHAINED command not allowed within multi-statement transaction