Results 1 to 2 of 2
  1. #1
    Albert is offline Senior Member
    Join Date
    Jun 2007
    Rep Power

    Default MySite/ 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 .
    Java Code:
    MyBean bean = new MyBean(categoryForm, PriceForm);
    		request.setAttribute("valid", bean);
    		List vids =MyBean.getVideos(categoryForm, PriceForm);
    Java Code:
    symbol  : class List
    location: class MySite.Valid
                    List vids = MyBean.getVideos(categoryForm, PriceForm);
    MySite/ non-static method getVideo(java.lang.String,
    ng.String) cannot be referenced from a static context
                    List vids = MyBean.getVideos(categoryForm, PriceForm);
    2 errors
    the first error should have:
    Java Code:
    "MySite/ cannot resolve symbol"

  2. #2
    Marcus is offline Member
    Join Date
    Jun 2007
    Rep Power


    Please check this:

    Java Code:
    List vids =bean.getVideos(categoryForm, PriceForm);

Similar Threads

  1. Replies: 2
    Last Post: 09-18-2008, 07:30 AM
  2. Replies: 3
    Last Post: 04-07-2008, 05:56 PM
  3. Cannot Resolve Symbol error...
    By seral1969 in forum New To Java
    Replies: 4
    Last Post: 02-18-2008, 01:17 AM
  4. Replies: 1
    Last Post: 12-21-2007, 12:12 PM
  5. Error: cannot resolve symbol, help me
    By mathias in forum Enterprise JavaBeans (EJB)
    Replies: 1
    Last Post: 08-06-2007, 02:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts