struts2中配置文件struts.xml中出错The content of element type "package" must match "(result-typ...
出错提示Thecontentofelementtype"package"mustmatch"(result-types?,interceptors?,default-in...
出错提示The content of element type "package" must match "(result-types?,interceptors?,default-interceptor-ref?,default-action-ref?,default-class-ref?,global-
results?,global-exception-mappings?,action*)".
报错位置如下
<package name="filePackage" namespace="/" extends="struts-default">
<interceptor-ref name="fileUpload">
<param name="allowedTypes">
image/png.image/gif,image/jpeg
</param>
</interceptor-ref>
<aciton name="upload" class="com.ly.action.UploadAction">
<param name="savePath">/upload</param>
<result name="input">/upload.jsp</result>
<result name="success">/success.jsp</result>
</aciton>
</package>
我已经百度过了,报错是因为顺序出错,可是我不太明白哪里顺序出错了?还是有别的问题 展开
results?,global-exception-mappings?,action*)".
报错位置如下
<package name="filePackage" namespace="/" extends="struts-default">
<interceptor-ref name="fileUpload">
<param name="allowedTypes">
image/png.image/gif,image/jpeg
</param>
</interceptor-ref>
<aciton name="upload" class="com.ly.action.UploadAction">
<param name="savePath">/upload</param>
<result name="input">/upload.jsp</result>
<result name="success">/success.jsp</result>
</aciton>
</package>
我已经百度过了,报错是因为顺序出错,可是我不太明白哪里顺序出错了?还是有别的问题 展开
1个回答
展开全部
<package name="filePackage" namespace="/" extends="struts-default">
<aciton name="upload" class="com.ly.action.UploadAction">
<interceptor-ref name="fileUpload">
<param name="allowedTypes">
image/png.image/gif,image/jpeg
</param>
</interceptor-ref>
<param name="savePath">/upload</param>
<result name="input">/upload.jsp</result>
<result name="success">/success.jsp</result>
</aciton>
</package>
猜测你想要的应该是这样的
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询