springmvc controller里面怎样得到页面的表单user属性? 5
cotroller里面是这样:publicStringaddIndexImg(ModelMapmodelMap,@RequestParam(value="card",re...
cotroller里面是这样:
public String addIndexImg(ModelMap modelMap,@RequestParam(value = "card", required = false) Card card)
jsp页面:
<form action="<%=path%>/OldAreaInfom.action?
<input type="text" name="card.id"/>
<input type="text" name="card.name"/>
</form>
实体对象那些都有,代码是没有写错的,但为什么controller里card对象始终为null? 展开
public String addIndexImg(ModelMap modelMap,@RequestParam(value = "card", required = false) Card card)
jsp页面:
<form action="<%=path%>/OldAreaInfom.action?
<input type="text" name="card.id"/>
<input type="text" name="card.name"/>
</form>
实体对象那些都有,代码是没有写错的,但为什么controller里card对象始终为null? 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询