Sorry, perhaps my english language isn't too good.. Prepare for SCJP 6, Please God help me.. ☼
References : [Java.Boot] [JavaChamp] [JavaPrepare]
David Newton wrote:@Leonardo: Start new threads for new topics. There are probably other ways we *could* upload files in S2, but what's wrong with the built-in method using interceptors?
@Sakthi: Please read UseCodeTags and UseRealWords.
Why are you redefining interceptors? Just use the defaultStack.
In your action you define the "fileUpload" interceptor-ref--but when you define interceptors on a per-action basis you're defining *all* the interceptors the action will use. Your action, then, uses *only* the "fileUpload" interceptor, which is almost certainly not what you intended.
The defaultStack already includes servletConfig and fileUpload: remove *all* interceptor configuration from your configuration file.
Note also that the fileUpload interceptor deletes the file once the action has completed execution--you may need to copy the file elsewhere if you want to preserve it.
David Newton wrote:@Leonardo: Start new threads for new topics. There are probably other ways we *could* upload files in S2, but what's wrong with the built-in method using interceptors?
@Sakthi: Please read UseCodeTags and UseRealWords.
Why are you redefining interceptors? Just use the defaultStack.
In your action you define the "fileUpload" interceptor-ref--but when you define interceptors on a per-action basis you're defining *all* the interceptors the action will use. Your action, then, uses *only* the "fileUpload" interceptor, which is almost certainly not what you intended.
The defaultStack already includes servletConfig and fileUpload: remove *all* interceptor configuration from your configuration file.
Note also that the fileUpload interceptor deletes the file once the action has completed execution--you may need to copy the file elsewhere if you want to preserve it.
David Newton wrote:@Leonardo: Start new threads for new topics. There are probably other ways we *could* upload files in S2, but what's wrong with the built-in method using interceptors?
Sorry, perhaps my english language isn't too good.. Prepare for SCJP 6, Please God help me.. ☼
References : [Java.Boot] [JavaChamp] [JavaPrepare]
David Newton wrote:Do you have setters for all the file properties?
Cheers!!! Bilal
Handsome Android||@bilal_speed||LinkedIn
Ruth Stout was famous for gardening naked. Just like this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
|