Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getting request.getAttribute error

 
Ishitha Dyanil
Greenhorn
Posts: 12
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am trying to compile the BeerSelect.java
I am getting an error saying


com\example\web\BeerSelect.java:32: error: cannot find symbol
request.setAtrribute("styles",result);
^
symbol: method setAtrribute(String,List)
location: variable request of type HttpServletRequest
Note: com\example\web\BeerExpert.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error


here is the BeerSelect.java



can you tell me the solution please..

 
Brian Burress
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The method is spelled wrong.


should be


 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Brian Burress wrote:The method is spelled wrong.


It's amazing how error messages don't lie and tell us exactly what's wrong, when we can check our assumptions and pay close attention.
 
Ishitha Dyanil
Greenhorn
Posts: 12
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you so much..My eye gone blind..!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic