Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to display content of session on JSP page?

 
Pras Tiwari
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Purushoth Thambu
Ranch Hand
Posts: 425
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic