| Author |
getting request.getAttribute error
|
Ishitha Dyanil
Greenhorn
Joined: Jan 18, 2012
Posts: 12
|
posted

0
|
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: 118
|
|
The method is spelled wrong.
should be
|
 |
Jeff Verdegan
Bartender
Joined: Jan 03, 2004
Posts: 5874
|
|
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
|
posted

0
|
Thank you so much..My eye gone blind..!!
|
 |
 |
|
|
subject: getting request.getAttribute error
|
|
|