Results 1 to 4 of 4
  1. #1
    kee2ka4 is offline Member
    Join Date
    Aug 2007
    Posts
    3
    Rep Power
    0

    Default New to Java Please Help

    Hello Everyone..

    I keep getting the following message: ')' Expected but I don't know why.. The Method is as follows:

    public void createTechnologyList(int applicationID) {
    dropDown.addToWhereAnd("TechnologyType IN (SELECT TechnologyType FROM Site WHERE ApplicationID=" + applicationID + "AND TechnologyType" = 1 ") ");

    dropDown.retrieve();
    resetCounter();
    items = dropDown.resultSet();

    }

    Could you please help?

    Thanks in advance
    Kets

  2. #2
    cruxblack is offline Senior Member
    Join Date
    Jul 2007
    Posts
    130
    Rep Power
    0

    Default

    Please please please please, do not double post, u already post the same question in Java EE thread
    Keep getting this error msg... Please help?

    Please read the FAQ and rules thread if u havent done it before
    http://www.java-forums.org/faq.php?faq=forumrules

    Bout ur code, i don't dwell in J2ee, but so far i see no wrong, can't help u there, sorry
    Last edited by cruxblack; 08-13-2007 at 05:01 PM.

  3. #3
    hardwired's Avatar
    hardwired is offline Senior Member
    Join Date
    Jul 2007
    Posts
    1,576
    Rep Power
    9

    Default

    Maybe from breaking up a string improperly. Try this:
    Java Code:
    public void createTechnologyList(int applicationID) {
        dropDown.addToWhereAnd("TechnologyType IN (SELECT TechnologyType FROM " +
                               "Site WHERE       ApplicationID=" + applicationID +
                               " AND TechnologyType = 1)");
    
        dropDown.retrieve();
        resetCounter();
        items = dropDown.resultSet();
    }

  4. #4
    kee2ka4 is offline Member
    Join Date
    Aug 2007
    Posts
    3
    Rep Power
    0

Posting Permissions

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