this.request.getRequestDispatcher(this.view).forward(this.request, this.response); } catch (Exception var2) { throw new RenderException(var2); } } 还有插件里MailPro.class动态代理生成的request,response都是null,大神有点什么提示么, public void send(String to, List cc, String subject, String viewPath, Map dataMap, List attachments) { HttpServletResponse response = (HttpServletResponse)Proxy.newProxyInstance(this.getClass().getClassLoader(), new Class[]{HttpServletResponse.class}, new MockHttpServletResponse()); HttpServletRequest request = (HttpServletRequest)Proxy.newProxyInstance(this.getClass().getClassLoader(), new Class[]{HttpServletRequest.class}, new MockHttpServletRequest()); Iterator text = dataMap.entrySet().iterator();
while(text.hasNext()) { Entry e = (Entry)text.next(); request.setAttribute((String)e.getKey(), e.getValue()); }
这个项目中有个 kit包,里面有个 EmailKit.java