View Single Post
  #1 (permalink)  
Old 07-05-2007, 06:46 AM
Albert Albert is offline
Senior Member
 
Join Date: Jun 2007
Posts: 114
Albert is on a distinguished road
MySite/Valid.java:56: cannot resolve symbol
I have a servlet which does this, is should create a new MyBean and pass in the params the bean then uses the params to acess a db and run a queray, the result set then adds the data into an array list , i then want to return the data to the servlet .
Code:
MyBean bean = new MyBean(categoryForm, PriceForm); request.setAttribute("valid", bean); System.out.println(bean); List vids =MyBean.getVideos(categoryForm, PriceForm);
Code:
symbol : class List location: class MySite.Valid List vids = MyBean.getVideos(categoryForm, PriceForm); ^ MySite/Valid.java:56: non-static method getVideo(java.lang.String,java.la ng.String) cannot be referenced from a static context List vids = MyBean.getVideos(categoryForm, PriceForm); ^ 2 errors
the first error should have:
Code:
"MySite/Valid.java:56: cannot resolve symbol"
Thanks
Albert
Reply With Quote
Sponsored Links