struts2 ognl.OgnlException: target is null for setProperty 这个问题通常都是先问getter,setter方法有没有; <input type="text" name="cat.name" /> 但是Action对象名却是c;这样也导致错误