---
title: "struts action获取页面参数"
author: "chokee"
date: "2014-05-22T15:07:45Z"
tags: []
categories: ["编程语言"]
slug: "struts-action"
draft: false
lastmod: "2014-05-22T15:07:45Z"
id: 2069962
url: "https://chokee.iteye.com/blog/2069962"
---

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