Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

cannot resolve symbol

 
lee anthony
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
LogonAction.java:73: 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
Posts: 1510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The setAttribute method takes a String and Object respectively. i.e setAttribute(String, Object)
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64632
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And a String is a very good example of an Object. The problem lies elsewhere.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic