⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jswz1servlet.java~11~

📁 c++通信编程学习1
💻 JAVA~11~
字号:
package com.j2ee.servlet.jswz;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
import java.sql.SQLException;
import com.j2ee.func.jswz.*;

/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2006</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */


public class Jswz1Servlet extends HttpServlet {
    private static final String CONTENT_TYPE = "text/html; charset=GBK";

    //Initialize global variables
    public void init() throws ServletException {
    }

    //Process the HTTP Get request
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws
            ServletException, IOException {
        Vector vctj2 = null;
        Vector vctsj = null;
        Vector vctej = null;
        Vector vctjj = null;
        Vector vctrcj = null;
        Vector vctys = null;
        Vector vctmv = null;
        JswzFunc jfj2 = new JswzFunc("J2ee核心");
        try {
            vctj2 = jfj2.SelectWzInfo();
        } catch (SQLException ex) {
        }
        JswzFunc jfsj = new JswzFunc("Servlet/Jsp");
        try {
            vctsj = jfsj.SelectWzInfo();
        } catch (SQLException ex) {
        }
        JswzFunc jfej = new JswzFunc("EJB");
        try {
            vctej= jfej.SelectWzInfo();
        } catch (SQLException ex) {
        }
        JswzFunc jfjj = new JswzFunc("JDBC/JDO");
        try {
            vctjj = jfjj.SelectWzInfo();
        } catch (SQLException ex) {
        }
        JswzFunc jfrcj = new JswzFunc("Rmi/Corba/Jini");
        try {
            vctrcj= jfrcj.SelectWzInfo();
        } catch (SQLException ex) {
        }
        JswzFunc jfys = new JswzFunc("应用服务器");
        try {
            vctys= jfys.SelectWzInfo();
        } catch (SQLException ex) {
        }
        JswzFunc jfmv = new JswzFunc("mvcwea");
        try {
            vctmv= jfmv.SelectWzInfo();
        } catch (SQLException ex) {
        }
        Vector vctzxwz=null;
        JswzFunc zxwz=new JswzFunc();
        try {
            vctzxwz=zxwz.selectTalltitle();
        } catch (SQLException ex) {
            }
        request.setAttribute("vctzxwz",vctzxwz);
        request.setAttribute("vctj2",vctj2);
        request.setAttribute("vctsj", vctsj);
        request.setAttribute("vctej",vctej);
        request.setAttribute("vctjj",vctjj);
        request.setAttribute("vctrcj",vctrcj);
        request.setAttribute("vctys",vctys);
        request.setAttribute("vctmv",vctmv);
        request.getRequestDispatcher("jswz_1.jsp").forward(request,
                response);

    }
    //Process the HTTP Post request
    public void doPost(HttpServletRequest request, HttpServletResponse response) throws
            ServletException, IOException {
        doGet(request, response);
    }

    //Clean up resources
    public void destroy() {
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -