[jboss-user] [JBoss Portal] - Re: Creating dummy ServletRequest and ServletResponse object

sambit_dixit do-not-reply at jboss.com
Wed Jun 24 01:52:03 EDT 2009


Hi Sourav,
  You can try this. 

  JbossActionRequest acReq = new   JbossActionRequest(actionRequest);
  |   Here the actionRequest is of type ActionRequest 
  |  
  |   HttpRequest httpReq = acReq.getControllerContext().getServerInvocation().getServerContext().getClientRequest();
  | 
  | 
  | Similarly you can get handle to HttpServletResponse. 
  | 
  | If can get the handle from RenderRequest as well. Instead of ActionRequest just use RenderRequest in the above code. 
  | 
  | 

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4239600#4239600

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4239600



More information about the jboss-user mailing list