struts2警告:
警告: No configuration found for the specified action: 'upload' in namespace: ''. Form action defaulting to 'action' attribute's literal value.
.jsp页面的相关源码:
struts.xml的配置如下:
解决办法:.jsp页面的form标记里加上属性 namespace="/",即:
<s:form action="fileUpload" enctype="multipart/form-data" method="post" namespace="/">
两个地方的namespace的属性值要一样,不能省略,否则就出现警告