问答详情
源自:3-2 SSH-案例:分页查询部门

404错误

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

提问者:fly丶captain 2018-04-17 16:04

个回答

  • 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

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