正确流程应该是

import javax.servlet.http.HttpServletRequest;

HttpServletRequst request = ServletActionContext.getRequest();

request.setAttribute(arg0,arg1); 

// request.getAttribute同理