GeeCON Prague 2014*
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


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Session" Watch "Session" New topic
Author

Session

Rocko Smith
Greenhorn

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.


SCJP, SCJD
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Session