Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

how to display content of session on JSP page?

 
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
 
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.
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic