Help me!

Posted on 2006-05-26
Last Modified: 2010-04-01
I have a class ListBean. Include getMusic() method: get a field in DB:
public Vector getMusic() throws ModuleException
        Vector albums = new Vector();
        Connection con = null;
        Statement stmt = null;
        ResultSet rs = null;
        String sQuery = "";
      con = dataSource.getConnection();  
              //Thuc hien truy van du lieu
              stmt = con.createStatement();
      sQuery = "SELECT a FROM HE";
      rs = stmt.executeQuery(sQuery);
      while (
            TourDTO tD=new TourDTO();                        
      catch (SQLException se)
        log.error("Error in retreiving albums.");
        log.error("SQL statement = " + sQuery);
        ModuleException me = new ModuleException("error.db.sql");
       throw me;
I want fill data into combox box over getMusic() method. Following code here:
ListBean lB=new ListBean(getDataSource(request, "HE"));
               Vector someBean= lB.getMusic();
               request.setAttribute("someBean", someBean);
      return mapping.findForward("list");
/*******Code into JSP page*****/
<logic:present name="someBean">
      <html:select property="someBean">
            <html:options collection="someBean" property="value" labelProperty="label"/>
When enter URL: "http://localhost:8080/Loginc/" appear a error: "No getter method available for property value for bean under name someBean"
Althought I am declaring someBean property in ListForm class. I don't know why have this error. Everybody help me, please!Thanks very much.

Question by:khoa235
    1 Comment
    LVL 14

    Accepted Solution

    Use the attribute "name" if you want to refer the bean in store request/session.
          <html:select property="someBean1">
               <logic:present name="someBean">
                    <html:options name="someBean"/>

    Use attribute "property" if the collection declare in the formbean - ListForm
          <html:select property="someBean1">
                <html:options property="someBean"/>

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Suggested Solutions

    Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
    OfficeMate Freezes on login or does not load after login credentials are input.
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now