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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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
I agree. Here's the link:
subject: Session.putValue VS Session.setAttribute
It's not a secret anymore!