This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
I'm using commons fileupload and am able to see that the file upload portion works fine, as per the example here. I want to build upon the basic idea by setting a maxFileSize and specifying a path. I understand that these can be done in struts-config.xml <controller> section. However, I'm having some issues -
1. I don't know if there is a specific order to be maintained in the struts-config.xml when inserting <controller> element. I put it at the very end, or before/after tiles <plug-in>, before/after <message-resources> but every time I get the following error on startup.
2. To specify the temp location of the uploaded file, I understand I can use tempDir in the <controller> but what I don't get is the path. Can it be absolute? Or is to be a location within the servlet container? If the latter then what would be the starting point - /WEB-INF?
I guess these are very basic questions, but they are roadblocks for me .
Any suggestions would be appreciated. Thanks.