操作步骤 步骤1:执行安装 $ ./gcinstall.py --silent=demo.options ****************************************************************** *************** Thank you for choosing GBase product! ……………… ****************************************************************** Do you accept the above licence agreement ([Y,y]/[N,n])? y ****************************************************************** Welcome to install GBase products
/** * */ private static final long serialVersionUID = 1L;
/** * The doGet method of the servlet.
* * This method is called when a form has its tag value method equals to get. * * @param request the request send by the client to the server * @param response the response send by the server to the client * @throws ServletException if an error occurred * @throws IOException if an error occurred */ public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
Connection conn = null; ResultSet rs = null; Statement st = null; try { Context ctx = new InitialContext(); DataSource ds = (DataSource) ctx.lookup("gbase2"); conn = ds.getConnection(); st = conn.createStatement(); rs = st.executeQuery("select id,name,age,department from emp"); while(rs.next()){
* * This method is called when a form has its tag value method equals to post. * * @param request the request send by the client to the server * @param response the response send by the server to the client
GBase UP 产品手册 6 应用开发指南 文档版本04(2021-04-21) 南大通用数据技术股份有限公司 1067 * @throws ServletException if an error occurred * @throws IOException if an error occurred */ public void doPost(HttpServletRequest request, HttpServletResponse response)
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> This is the description of my J2EE component This is the display name of my J2EE component TestServlet com.gbase.glassfish.TestServlet