User Profile
Collapse
-
Thanks i forgot to import that package and the other error was because i was calling the wrong method... -
Thanks i tried that but i just get a empty list returned, in the getvideo method what should i have in it now then?
...Code:public List getVideo(String p1, String p2) { ArrayList videos = new ArrayList(); videoBean v1 = new videoBean(); v1.setArtist("some artist"); // hard code the stuff here v1.setTitle("the title"); videos.add(v1); return videos; }Leave a comment:
-
Help with result set
Can anybody help me with this? I have bean which connects to a db and runs a queary, i am then trying to go through the result set and add each item returned to a array list, at the moment i can add items to a array list by hard coding them in but am having trouble doing it with a loop:
...Code:public List getVideo(String p1, String p2) { ArrayList videos = new ArrayList(); videoBean v1 = new videoBean(); v1.setArtist("some -
Help with errors urgent please
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...Code:MyBean bean = new MyBean(categoryForm, PriceForm); request.setAttribute("valid", bean); System.out.println(bean); List vids =MyBean.getVideos(categoryForm, PriceForm);
No activity results to display
Show More
Leave a comment: