写道
action 获取前台JSP 传过来的参数
/**
* 添加公司之选择用户ID
*/
public Long searchUser() throws Exception{
ActionContext ctx = ActionContext.getContext();
HttpServletRequest request = (HttpServletRequest) ctx.get(ServletActionContext.HTTP_REQUEST);
String str=request.getParameter("userid");
uid=Long.parseLong(str);
return uid;
}