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

getting request.getAttribute error

Ishitha Dyanil

Joined: Jan 18, 2012
Posts: 12

I am trying to compile the
I am getting an error saying

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

here is the

can you tell me the solution please..

Brian Burress
Ranch Hand

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

should be

Jeff Verdegan

Joined: Jan 03, 2004
Posts: 6109

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

Joined: Jan 18, 2012
Posts: 12

Thank you so much..My eye gone blind..!!
I agree. Here's the link:
subject: getting request.getAttribute error
It's not a secret anymore!