wood burning stoves 2.0*
The moose likes JSP and the fly likes Session.putValue   VS   Session.setAttribute Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Session.putValue   VS   Session.setAttribute" Watch "Session.putValue   VS   Session.setAttribute" New topic

Session.putValue VS Session.setAttribute

Sanjay Deshpande
Ranch Hand

Joined: May 22, 2001
Posts: 111
Out of these 2
Session.putValue & Session.setAttribute
Which one is better and why?
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

Did you check the javadocs?
Deprecated. As of Version 2.2, this method is replaced by setAttribute
It is sorta covered in the JavaRanch Style Guide.
subject: Session.putValue VS Session.setAttribute
Similar Threads
Session Variable problem in EJB
Session Tracking with cookies disabled.
Urrgent Pls Advice as soon as possible
JSP sessions under Websphere
Difference b/w "session.putValue" and session.setAttribute"?