struts action获取页面参数

struts action获取页面参数
Map map = new HashedMap();
ActionContext context = ActionContext.getContext();
map = context.getParameters();
HttpServletRequest request = ServletActionContext.getRequest();
map.put("gdjid", request.getParameter("gdjid"));

你可能感兴趣的:(struts)