访问action的时候什么情况下加.do

来源:互联网 发布:收银软件大概多少钱 编辑:程序博客网 时间:2024/05/17 09:13

比如一个action是这么配置的:
<action path="/control/brand/list" name="brandForm" scope="request">
      <forward name="list" path="/page/brand/brandlist.jsp"></forward>
  </action>

那么在
1:不加.do后缀的:
<html:form action="/control/brand/manage" method="post" enctype="multipart/form-data"  onsubmit="return checkfm(this)">

2:加.do后缀的:
<a href="/control/brand/list.do">xxx</a>
这个如果一直有错的话,注意排查看用不用加项目名,如baba1.1/control/brand/list.do

原创粉丝点击