I am new to Struts 2, The article provided here was very usefull. I have a requirement that the directory path(where the file to be uploaded in the server) should not be coded in action class. That has to be passed as parameter to action class from a xml file(not to be struts.xml).