/** * */ 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
GBase 8a 程序员手册JDBC 篇
- 90 -
南大通用数据技术股份有限公司 */ public void doGet(HttpServletRequest request, HttpServletResponse response)
* * 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 * @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 TestJNDIWithGBase
com.gbase.jndi.TestJNDIWithGBaseass>
TestJNDIWithGBase /TestJNDIWithGBase
index.jsp
当访问如下URL 时: http://localhost:7001/TestGBaseJNDIWithWeblogic/TestJNDIWithGBas e 该测试用例会打印出数据库为test 表为emp 中的内容。