一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

用Java实现可保存状态的数据库生成XML树,源码来了(10)

时间:2022-07-02 17:52:45 编辑:袖梨 来源:一聚教程网

2.XMLServlet.java
package com.sitechasia;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.PrintWriter;
import java.io.IOException;
import javax.sql.RowSet;
import com.sitechasia.ejb.*;
import javax.ejb.Handle;
public class XMLServlet extends HttpServlet {
    PrintWriter out;
    private static ResultEdit re;
    private Object ref;
    boolean flag=true;
    private Handle handle=null;
    private static String HostIP = null;
        private static String HostPort = null;
        private static final String CONTENT_TYPEX = "text/xml";
        private static final String CONTENT_TYPEH = "text/html";
        private static final String CONTENT_XSLT = "";
        private static final String CONTENT_XSLC = "";
        /**Initialize global variables*/
        public void init() throws ServletException {
        }
        /**Process the HTTP Get request*/
        public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
            try{
                HttpSession session=request.getSession();

热门栏目