<h:selectManyMenu>
<h:selectOneMenu>

解决方案 »

  1.   

    哪种啊那种像文件、编辑的
    你用myfaces里有
    看例子
      

  2.   

    package test;import java.sql.*;public class test
    {
    String sDBDriver="com.microsoft.jdbc.sqlserver.SQLServerDriver";
    String sConnStr="jdbc:microsoft:sqlserver://localhost:8080;DatabaseName=bookshop";
    String user = "sa";
    String password = "123456";
    Connection conn=null;
    ResultSet rs=null; public test()
    {
    try{
    Class.forName(sDBDriver);
    }
     catch(java.lang.ClassNotFoundException e)
     {
     System.err.println("错误是: personbean():"+e.getMessage());
     }
    }
    //首页显示所有的记录,查询所有的数据;
    public ResultSet executeQuery_FindAll()
    {
    String sql_FindAll="select id,title,name,body from body";
    rs=null;
    try
    {
    conn=DriverManager.getConnection(sConnStr,user,password);
    Statement stmt=conn.createStatement();
    rs=stmt.executeQuery(sql_FindAll);
    } catch(SQLException ex)
    {
    System.err.println("aq.executeQuery:"+ex.getMessage());
    }
    return rs;
    }
    }
      

  3.   

    谁帮我看看 这个JAVABEAN 是哪里出了问题呀