HttpServletRequest request = ServletActionContext.getRequest();
HttpServletResponse response = ServletActionContext.getResponse();
GauceConnection conn = (GauceConnection)request.getAttribute("GauceConnection");
System.out.println("CONN : " + conn); //결과 : null
HttpGauceRequest hreq = conn.getHttpGauceRequest(); //<-- java.lang.NullPointerException
HttpGauceResponse hres = conn.getHttpGauceResponse();
GauceInputStream is = hreq.getGauceInputStream();
GauceOutputStream os = hres.getGauceOutputStream();
개발환경:
Struts 2.0
웹로직 9.2
jdk 1.5