訪問不見action
我在創(chuàng)建一個jsp 然后訪問 action的時候報
There is no Action mapped for namespace [/] and action name [auth] associated with context path [/struts2_].
這個錯誤 ?我在strut.xml 文件中寫著
<package name="default" namespace="/" extends="struts=default">
? ??
? ? ?<action name="auth" >
? ? ? <result>/login.jsp</result>
? ? ?</action>
? ?</package>
2018-05-19
${pageContext.servletContext.contextPath}/auth.這樣放在jsp提交表單的action里面或者超鏈接的href屬性里面。
2022-03-30
2018-05-19
其一是你的struts-default打錯了。另外一個是你的action的class在哪里。標簽沒有class這個屬性
2017-10-20
<package name="default" ?namespace="/" extends="struts-default" >
繼承自 ?struts-default ?你寫的等于