This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have developed file upload application in struts 2.
Here File Upload Interceptor actually deletes the the uploaded file , once the
action is executed.
so before returning success I have called function to copy.
Here is my action class
1)Is there any way to tell the interceptor not to delete that file ?
2)In line 56 of code ,I have specified destination path and file name with extension.
what if I want to upload .doc file then I'll have to change extension again ?
The FileUpload interceptor is responsible for uploading the file once the upload is once it will remove the file immediately due to security reasons so we have to handle the file. Just save the file where you want to save it.
ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.