1.
ActionContext ctx = ActionContext.getContext();
Map request = ctx.get("request");
System.out.println(request.get("name"));
2.
HttpServletRequest request = ServletActionContext.getRequest();
System.out.println(request.getParameter("name"));
3.
HttpServletRequest request = (HttpServletRequest)ActionContext.getContext().get(org.apache.struts2.StrutsStatics.HTTP_Request);
System.out.println(request.getParameter("name"));
4.
Map<String,Object> map = ActionContext.getContext().getParameters();
System.out.println(((String[])map.get("name"))[0]);
欢迎加我的qq技术群425783133