request的实例化

两种方式:

HttpServletRequest request = ServletActionContext.getRequest (); 

ActionContext ct= ActionContext.getContext() ; 

HttpServletRequest request= (HttpServletRequest)ct.getServletActionContext.HTTP_REQUEST);

你可能感兴趣的:(request的实例化)