/** * Delegates to {@link XFireServletController#doService(javax.servlet.http.HttpServletRequest, * javax.servlet.http.HttpServletResponse)}. */ protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { HttpSession session = request.getSession(); User user = (User) session.getAttribute("user"); String reqURI = request.getRequestURI(); if (null == user) { // 用户未登录不能查看 if ("/taxcarship/services/TaxQueryService".equals(reqURI) || "/taxcarship/services/TaxQueryService".equals(reqURI) || "/taxcarship/services/TaxConfirmService".equals(reqURI) || "/taxcarship/services/TaxChangeQueryService".equals(reqURI) || "/taxcarship/services/TaxChangeConfirmService".equals(reqURI) || "/taxcarship/services/TaxDeclaeredUPloadService".equals(reqURI) || "/taxcarship/services/TaxReconciliationService".equals(reqURI) || "/taxcarship/services/QuesListUpdateService".equals(reqURI) || "/taxcarship/services/TaxPayQueryService".equals(reqURI)) { controller.doService(request, response); } else { ServletContext sc = getServletContext(); RequestDispatcher requestDispatcher = sc.getRequestDispatcher("/ccs/jsp/wsdlList.jsp"); requestDispatcher.forward(request, response); } } else { // 若已登录则可正常显示WSDL列表 controller.doService(request, response); } }
/** * Delegates to {@link XFireServletController#doService(javax.servlet.http.HttpServletRequest, * javax.servlet.http.HttpServletResponse)}. */ protected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { controller.doService(req, res); }