Two Laptop Bag
The moose likes Struts and the fly likes how to display content of session on JSP page? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to display content of session on JSP page?" Watch "how to display content of session on JSP page?" New topic
Author

how to display content of session on JSP page?

Pras Tiwari
Ranch Hand

Joined: Nov 07, 2005
Posts: 186
Hi,
I am using STRUTS framework for my web development. Now When user logs in through login page, I am putting a valueobject(that is holding complete user info )into session. Now later on othe page I want to display address infor from that user valueobject stored in session. How should I retrieve address info on my JSP page from valueobject already stored into session ?

Please reply.
Thanx


********Deserve Before You Desire********
Purushoth Thambu
Ranch Hand

Joined: May 24, 2003
Posts: 425
Take a look at struts-bean tag library. Simply you can write something like
<bean:write name="valueobject" property="address"/>

Here address is the member of user object bounded to the session.
 
Have you checked out Aspose?
 
subject: how to display content of session on JSP page?
 
jQuery in Action, 3rd edition