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

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

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

    Default

    Please check this:

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

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, 12:17 AM
  4. Replies: 1
    Last Post: 12-21-2007, 11:12 AM
  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
  •