WebContext wctx = WebContextFactory.get();
String FILE_NAME = wctx.getServletContext().getRealPath("/")+"/WEB-INF/dbconfig.txt";
//通过DWR中的WebContext来获取上下文路径
WebContext wctx = WebContextFactory.get();
String FILE_NAME = wctx.getServletContext().getRealPath("/")+"/WEB-INF/dbconfig.txt";
//通过DWR中的WebContext来获取上下文路径