I need to populate property lists in an ActionForm from a database. For different application user, I store the userid in session attribute. The data is based on userid. How can I get the userid session attribute within the ActionForm? I know it's easy to do this in an Action class, but I would like to do it in the JSP.

Ted Husted

The HttpServletRequest is passed to the reset method, which gives you access to the session. It's preferred to do such things in an Action, but you can access database in the reset (or validate) methods as well.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact