I think if jars are not included properly it would not even allow me to submit correct files() but i can do every thing and more over its telling the file is not a correct contentType but no message is shown to user in browser :( i even kept
struts.properties struts.custom.i18n.resources=MMSApplicationMessages struts.messages.error.uploading=General Error could not upload files struts.messages.error.file.too.large=File Size is too Large than expected struts.messages.error.content.type.not.allowed=uploaded file does not match the expected content types specified i have done and followed all steps and following are the jars in my application(MMSApplication\WebRoot\WEB-INF\lib) commons-beanutils-1.7.0.jar commons-fileupload-1.2.1.jar commons-io-1.4.jar commons-logging-1.0.4.jar commons-logging-api-1.1.jar commons-validator-1.3.1.jar dwr-1.1.1.jar freemarker-2.3.13.jar json-lib-2.1.jar jug-2.0.0.jar jxl.jar mysql-connector-java-5.0.4-bin.jar ognl-2.6.11.jar struts2-config-browser-plugin-2.1.6.jar struts2-convention-plugin-2.1.6.jar struts2-core-2.1.6.jar struts2-dojo-plugin-2.1.6.jar struts2-dwr-plugin-2.1.6.jar struts2-jasperreports-plugin-2.1.6.jar struts2-jfreechart-plugin-2.1.6.jar struts2-jsf-plugin-2.1.6.jar struts2-testng-plugin-2.1.6.jar xpp3_min-1.1.3.4.O.jar xstream-1.2.2.jar xwork-2.1.2.jar struts.xml <action name="SMSSubscription" class="com.teleparadigm.mms.application.smssubcription.SMSSubscriptionAction"> <interceptor-ref name="i18n" /> <interceptor-ref name="fileUpload"> application/vnd.ms-excel </interceptor-ref> <interceptor-ref name="basicStack" /> <interceptor-ref name="validation" /> <result name="input"> /pages/ComposeSMSSubscriptions.jsp </result> <result name="error"> /pages/ComposeSMSSubscriptions.jsp </result> <result>/pages/upload_success.jsp</result> </action> -- View this message in context: http://www.nabble.com/Fileupload-%3A-Restricted-contentType-is-working-fine-but-no-proper-error-message-is-shown-to-user-tp22535689p22536371.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org