ssh中条件查询时条件一直为空值是什么原因


/**
 * 部门action
 * @author Y50p-70
 *
 */
public class DepAction {
	
	private IDepBiz depBiz;

	public void setDepBiz(IDepBiz depBiz) {
		this.depBiz = depBiz;
	}
	
	
	//属性驱动:条件查询
	private Dep dep1;
	
	public Dep getDep() {
		return dep1;
	}

	public void setDep(Dep dep1) {
		this.dep1 = dep1;
	}
	
	//条件查询
	public void getList(){
		System.out.println("dep1="+dep1);
		List<Dep> list = depBiz.getList(dep1);
		System.out.println("=====");
		//把部门列表转化为JSON字符串
				String listString = JSON.toJSONString(list);
				write(listString);
		
	};

	public void write(String jsonString){
				try {
					HttpServletResponse response = ServletActionContext.getResponse();
					response.setContentType("text/html;charset=utf-8");
					
					//输出到页面
					response.getWriter().write(jsonString);
				} catch (IOException e) {
					e.printStackTrace();
				}
	};
	

}

 

项目里直接debug模式 一行行看,看看入参和出参有没有拿到