wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "session object or form bean" Watch "session object or form bean" New topic

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
internet detective

Joined: May 26, 2003
Posts: 30138

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
Similar Threads
Regarding Action Servlet
Classic Struts Issue [A beginner]
Design Issue(Urgent)
Best Practice for binding form values
JSP Dynamically generated link needs to be associated with different form and submitted