加載完JSP頁面后控制臺出現這兩句話,2016-08-28 22:50:58,289 WARN ?[CommonsLogger.java:60] : No configuration found for the specified action: 'product_save' in namespace: '/'. Form action defaulting to 'action' attribute's literal value.2016-08-28 22:50:58,304 WARN ?[CommonsLogger.java:60] : No configuration found for the specified action: 'product_save' in namespace: '/'. Form action defaulting to 'action' attribute's literal value.這是JSP的action路徑:這是Struts2的配置:這是整個項目的目錄:這是JSP頁面:點擊添加后的頁面:
3 回答
已采納

大咪
TA貢獻785條經驗 獲得超332個贊
在struts.xml中的那個package下試試這么寫看看對不對,代碼如xia
<action?name="*_*"?class="action.{1}Action"?method="{2}"></action> 我覺得是你大小寫的問題,貌似是你的Product和product的問題,如果對了的話望采納!~
添加回答
舉報
0/150
提交
取消