User Profile

Collapse

Profile Sidebar

Collapse
peterkay
peterkay
Last Activity: Oct 14 '08, 02:43 AM
Joined: Apr 13 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • peterkay
    replied to Help with errors urgent please
    in Java
    Thanks i forgot to import that package and the other error was because i was calling the wrong method...
    See more | Go to post

    Leave a comment:


  • peterkay
    replied to Help with result set
    in Java
    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;
    	}
    ...
    See more | Go to post

    Leave a comment:


  • peterkay
    started a topic Help with result set
    in Java

    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
    ...
    See more | Go to post

  • peterkay
    started a topic Help with errors urgent please
    in Java

    Help with errors urgent please

    Code:
    MyBean bean = new MyBean(categoryForm, PriceForm);
    		request.setAttribute("valid", bean);
    		System.out.println(bean);
     
    		List vids =MyBean.getVideos(categoryForm, PriceForm);
    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...
    See more | Go to post
No activity results to display
Show More
Working...