标签:
今天启动服务后后台一直报这个警告:
[WARN] No configuration found for the specified action: ‘/fileUpload/queryExecute.do‘ in namespace: ‘‘. Form action defaulting to ‘action‘ attribute‘s literal value.
jsp代码:
<s:form action="/fileUpload/queryExecute.do" method="POST" enctype="multipart/form-data">
strust2配置文件:
<package name="fileUpload" extends="struts-default" namespace="/fileUpload">
<action name="queryExecute" class="fileUploadAction" method="queryExecute">
解决方法:
经过测试发现,是没有正确使用tag的原因,这种情况下,正确的写法应该是,
<s:form action="queryExecute" method="POST" enctype="multipart/form-data" namespace="/fileUpload">
注意是queryExecute而不是queryExecute.do
No configuration found for the specified action解决办法
标签:
原文地址:http://www.cnblogs.com/andong2015/p/4310875.html