This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Session Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Session" Watch "Session" New topic


Rocko Smith

Joined: Jul 12, 2005
Posts: 10
I created a jsp. Do I need to do a setattribute for each i/p field so when I reference these fields in the action class module, I can retrieve the field contents by using a getParameter or does struts automatically save them into the session for me? As you can see, I'm using struts.
Yevgeniy Treyvus
Ranch Hand

Joined: Mar 09, 2005
Posts: 48
Struts should handle this automatically. Input fields are not saved in session-scope. They are saved in request-scope.

I agree. Here's the link:
subject: Session