struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dean Pullen" <dean.pul...@msp-uk.com>
Subject RE: File upload messages problem
Date Sat, 14 Jul 2007 08:53:34 GMT
The person who had the original problem was kind enough to help.

Added "struts.custom.i18n.resources=struts-messages" into
struts.properties and added a struts-messages.properties file, placed
the key/value pairs in there. Works fine.

Thanks.

-----Original Message-----
From: Deepak Kumar [mailto:deepak123@roseindia.net] 
Sent: 14 July 2007 08:06
To: Struts Users Mailing List
Subject: RE: File upload messages problem

HI,

Please have a look at struts 2 file upload example at
http://www.roseindia.net/struts/struts2/struts-2-file-upload.shtml.

Hope this will help you.

Can you please tell me what error you are facing.

Regards
Deepak Kumar
http://www.roseindia.net


-----Original Message-----
From: Dean Pullen [mailto:dean.pullen@msp-uk.com]
Sent: Friday, July 13, 2007 9:16 PM
To: user@struts.apache.org
Subject: File upload messages problem


I have a similar problem to a previous post that didn't get any replies.



I'll relist it for quick reference:



The documentation on the page File Upload Interceptor
(http://struts.apache.org/2.x/docs/file-upload-interceptor.html)
indicates that the error messages are currently set to defaults in the
struts-messages.properties file.  However, when I look at the file the
messages I am getting are different than those specified.  The page goes
on to indicate that these properties can be overridden by setting them
in your properties file for the following keys:

- struts.messages.error.uploading - a general error that occurs when the
file could not be uploaded
- struts.messages.error.file.too.large - occurs when the uploaded file
is too large
- struts.messages.error.content.type.not.allowed - occurs when the
uploaded file does not match the expected content types specified





I over-ride these in struts.properties and struts-messages.properties
and neither works.



What is the correct method?



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Scanned by MailDefender - managed email security from intY -
www.maildefender.net

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message