This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Servlets and the fly likes cannot resolve symbol 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 » Servlets
Bookmark "cannot resolve symbol" Watch "cannot resolve symbol" New topic

cannot resolve symbol

lee anthony
Ranch Hand

Joined: Jan 23, 2004
Posts: 35
i have problem while running my simple action class
i need to set user name in my seeion but it is not allowing me do to so
it throws errors wile compling cannot resolve symbol
symbol : method setAttribute (java.lang.String,java.lang.String)
location: interface javax.servlet.http.HttpSession
vsessions.setAttribute("USER_NMAE", "lee");
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
The setAttribute method takes a String and Object respectively. i.e setAttribute(String, Object)

So much trouble in the world -- Bob Marley
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63354

And a String is a very good example of an Object. The problem lies elsewhere.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: cannot resolve symbol
It's not a secret anymore!