如果用户提交无效的图像扩展名,我正在尝试image upload
使用 struts2 拦截器将验证放入我的表单中,应该有验证错误消息吗?
上传主题图片.jsp
<s:form action="updatethemeimageform" method="post" enctype="multipart/form-data" id="remoteform" theme="simple" >
<s:hidden value="%{#parameters.themeid}" name="themId"/>
<s:file name="thempic" label="Theme Screenshot" />
<sj:a button="true" id="btnsid" buttonIcon="ui-icon-gear" dataType="json" indicator="indicator" onSuccessTopics="reloadMyGrid,handleJsonResult"
formIds="remoteform" targets="result">Submit This Form</sj:a> </s:form>