aspose file tools*
The moose likes Struts and the fly likes session object or form bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "session object or form bean" Watch "session object or form bean" New topic
Author

session object or form bean

jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 576
In Struts 1.X,How I can set the data(to be displayed to user),I should store the data in Session object then using JSP ,read session object parameter and display to user.Or otherwise ,Can I should use Form bean to store data(to be displayed to user).Which one is most appropriate for an enterprise application and generally used .
[ May 04, 2008: Message edited by: jacob deiter ]
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30752
    
156

Either of those (form or directly in session) are viable strategies.

"I should store the data in Session object then using JSP" - this part confuses me. Either way, you are using JSP. It's just a question of whether the JSP gets the data directly from an attribute in the session or from a form (which is stored as an attribute in the session)


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: session object or form bean