404错误

来源:3-2 SSH-案例:分页查询部门

fly丶captain

2018-04-17 16:04

哪位大神知道这个怎么解决?There is no Action mapped for namespace [/frame] and action name [department_findAll] associated with context path [/ssh_employee].

写回答 关注

3回答

  • 54Lanedy
    2019-05-09 10:47:30
    <!--2.3版本之后使用通配符需要配置的属性,内部会验证是否允许访问以*结尾的方法-->
    <global-allowed-methods>regex:.*</global-allowed-methods>


  • 慕数据3377403
    2018-06-03 12:02:22

    <action name="clothes_*" class="clothesAction" method="{1}">

    <result name="input">/login.jsp</result>

    <result name="success" type="redirect">/frame.jsp</result>

    <result name="findAll">/frame/listClothes.jsp</result>

    <result name="saveUI">/frame/addClothes.jsp</result>

    <result name="saveSuccess" type="redirectAction">clothes_findAll.action</result>

    <result name="editSuccess">/frame/editClothes.jsp</result>

    <result name="updateSuccess" type="redirectAction">clothes_findAll.action</result>

    <result name="deleteSuccess" type="redirectAction">clothes_findAll.action</result>

    </action>

    <action name="category_*" class="categoryAction" method="{1}"> 

       <result name="findAll">/frame/list.jsp</result>

    <!-- <result name="findAll">/frame/listCategory.jsp</result> -->

    <result name="saveUI">/frame/addCategory.jsp</result>

    <result name="saveSuccess" type="redirectAction">category_findAll.action</result>

    <result name="editSuccess">/frame/editCategory.jsp</result>

    <result name="updateSuccess" type="redirectAction">category_findAll.action</result>

    <result name="deleteSuccess" type="redirectAction">category_findAll.action</result>

    </action>

    我是这样写的,应该没有错误吧?

  • weup
    2018-04-18 20:16:52

    看一下配置文件,应该是配置文件的错误

基于SSH实现员工管理系统之案例实现篇

SSH框架整合案例之实现篇,手把手带你实现员工管理系统

50212 学习 · 323 问题

查看课程

相似问题