This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
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 Java Interview Guide this week in the Jobs Discussion 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: 580
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

Joined: May 26, 2003
Posts: 33134

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)

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: session object or form bean
It's not a secret anymore!