Unable to instantiate Action, action.ProductAction, defined for 'product_save' in namespace '/'null
Unable to instantiate Action, action.ProductAction, ?defined for 'product_save' in namespace '/'null
Unable to instantiate Action, action.ProductAction, ?defined for 'product_save' in namespace '/'null
舉報(bào)
2018-04-26
可以直接用
<s:form action="save" method="post" namespace="/" theme="simple"></s:form>
<action ?name="save" method="save" class="org.integrateSSH.action.ProductAction"></action>
2017-12-17
查看class的路徑有沒有寫對(duì),
<!-- action由本身創(chuàng)建 -->
<!-- <action name="product_*" method="{1}" class="org.integrateSSH.action.ProductAction">
</action> -->
<!-- action由spring管理創(chuàng)建,其中class="productAction", productAction為bean的ID-->
<action name="product_*" method="{1}" class="productAction">
</action>