• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can i get the form bean from the session?

 
kay lin
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all:
I just have a short question:

Say in my struts-config.xml file,
i give one of the form beans to session scope like the following


as you can see , the detalisForm is in the session scope, so let us say in my JSP page, I would like to refer to the detailForm, can i do the following?

I don't know what exactly I should put in the getAttribute() as parameter,

so if you know the answer, do not hesitate to let me know

Many ..Many Thanks
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
request.getSession().getAttribute("detailForm");

The "detailForm" is close.
In your mapping you referred to it as detailsForm, so that is the correct string to pass.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic