struts2中配置文件struts.xml中出错The content of element type "package" must match "(result-typ... 200
展开全部
配置错了,你配置的属性在struts.xml中不支持,参考下面的
<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>
<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>
2017-07-21
展开全部
看看较完整的配置是如何的
~
~
~
~
~
~
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询