form没指定action 路径 只设定了modelAttribute="xx"
springmvc吧
全部回复
仅看楼主
level 1
<%@taglib prefix="sf" uri="http://www.springframework.org/tags/form" %>
.....
<sf:form method="post" modelAttribute="role" id="addForm">
这里没指定action路径 但是提交 他却解析了路径
页面解析后 确有了action的路径
<form id="addForm" action="/cms/admin/role/add" method="post">
怎么回事
2014年09月04日 08点09分 1
level 1
知道了 form没设置action的值 就t提交给当前url
2014年09月04日 08点09分 2
1