action中获取servletconfig
试试这个,祝好!
ServletConfig sconfig = (ServletConfig)request.getSession().getServletContext().getAttribute("servletConfig");
ServletActionContext.getPageContext().getServletConfig();