I save file in "WEB-INF/activity_files/activity1" location. All file types get saved.
Here I am stating the problem and then the code I am using to download:
Problem: When I click on download link, I get the file download window with some weird file name with right file type icon on it and when I save..., some raw type file is saved.
The file saved is of correct size but the name is not the same and the file is not associated with any file type.
This is first time I am implementing file download.... I need help to diagnose and find solution. I appreciate any help.
In my web application there is an action which takes time to complete because it does several things like
resizes an image in two different sizes and saves record also sends mail.
To reduce time I am trying to do it in a different way!
I am creating a class which is implementing HttpSessionBindingListener so that when the action gets executed
the action will create an object from it. The object will have required instance variables. When I add the object to
the users session, the valueBaund() will be called. The method is programmed to does other tasks.
I want to know if this approach is correct to implement?
In my application I allow to save an image file of type jpeg.
But when I save it, I found the file size reduced means the loss of image quality.
Example: (suppose in my local drive the file size is 1.4mb. after uploading to the server the file saved on the server shows 644kb).
I want to save the image in its original file size.
I made a change: the formbean now extends ActionForm, instead of extending ValidatorActionForm.
With this change I found the action class method is accessed which was not happening previously. It prints 'hi'(see the code above).
But the formbean is not able to map the property stated in the jsp.
I think some problem occur at the time of starting validation... may be the COR try to process message resource & it does not find one!