aspose file tools*
The moose likes Beginning Java and the fly likes getting request.getAttribute error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "getting request.getAttribute error" Watch "getting request.getAttribute error" New topic
Author

getting request.getAttribute error

Ishitha Dyanil
Greenhorn

Joined: Jan 18, 2012
Posts: 12

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

Joined: Jun 30, 2003
Posts: 123
The method is spelled wrong.


should be


Jeff Verdegan
Bartender

Joined: Jan 03, 2004
Posts: 6109
    
    6

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

Joined: Jan 18, 2012
Posts: 12

Thank you so much..My eye gone blind..!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getting request.getAttribute error