It's not a secret anymore!*
The moose likes Beginning Java and the fly likes getAttribute replacing getValue? 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 » Beginning Java
Bookmark "getAttribute replacing getValue?" Watch "getAttribute replacing getValue?" New topic
Author

getAttribute replacing getValue?

Melinda Wilson
Ranch Hand

Joined: Jul 05, 2001
Posts: 35
I am currently using getValue method and was err as a deprecated method. Is getAttribute the replacement for this method?
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
In what class?


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
If you are referring to the HTTpSession class. Yes, getAttribute() replaces getValue() and setAttribute() replaces putValue().
Bosun


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Melinda Wilson
Ranch Hand

Joined: Jul 05, 2001
Posts: 35
Thank you very much.
 
 
subject: getAttribute replacing getValue?
 
Similar Threads
Can You Find the Error in this SCJP6 Study Guide Mock Exam Question?
Some help with a sample SCWCD question based on Listeners.
Session Variable problem in EJB
HttpSession get and setAttribute problem
Difference between HttpSession.getAttribute() and HttpSession.getValue()