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 .
MyBean bean = new MyBean(categoryForm, PriceForm);
request.setAttribute("valid", bean);
System.out.println(bean);
List vids =MyBean.getVideos(categoryForm, PriceForm);
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:
"MySite/Valid.java:56: cannot resolve symbol"
Thanks
Albert