This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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.

It is sorta covered in the JavaRanch Style Guide.
subject: Session
Similar Threads
Passing an object between actions.
session expiration in struts
Validation in Struts 2
pagination problem