得到application

   ServletContext application = request.getSession().getServletContext();
        String basePath = (String) application.getAttribute("rootUrl");
        System.err.println(application.getAttribute("rootUrl")+"----------111111------------"+request.getServletContext().getRealPath("/"));
        //response.sendRedirect(basePath+"app/wx/product/manage");
 

posted @ 2017-04-06 08:22  baby孔祥超  阅读(98)  评论(0编辑  收藏  举报