This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to display content of session on JSP page?

 
Pras Tiwari
Ranch Hand
Posts: 186
  • 0
  • 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
  • 0
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic