HTTP Status 404 - Invalid path was requested
struts-config.xml代码: 
 <action
      attribute="deparetmentForm"
      name="deparetmentForm"
      parameter="method"
      path="/deparetment"
      scope="request"
      type="org.springframework.web.struts.DelegatingActionProxy">
          <forward name="departmentList" path="/../WEB-INF/sys/departmentList.jsp"></forward>
    </action>

 
applicationContext.xml代码:

<!-- action -->
   <bean name="/deparetment"  class="com.accp.sys.department.action.DepartmentAction">
  <property name="bizTemplate" ref="bizTemplate"></property>
  </bean>

 页面代码:

<tr>
    <td height="20"
          style="cursor:hand"   onmouseover="this.style.borderStyle='solid';this.style.borderWidth='1';borderColor='#7bc4d3'; "
onmouseout="this.style.borderStyle='none'">
        <a href="./department.do?method=list" target="I2">
            <span class="STYLE3">权限管理</span>
        </a>
    </td>
</tr>

 

 我的项目路径是:com.XX.sys.department.action.department.action

   HTTP Status 404 - Invalid path was requested

麻烦各位帮我看一下,先谢谢了!

4个回答

我晕倒了,
你自己笔误了
看看你自己粗心的
path="/[color=red]deparetment[/color]"

比较下,写错了字母

不要前面的点号了

你的路径有问题,前面的.去掉把路径写清楚试试 [code="java"]href="./department.do?method=list"[/code]

你的department.do在哪个目录下应该写清楚
例如/page/department.do

立即提问