I'm using <html:file...> in my jsp(struts) to upload file. My problem is that when I select a file I am calling an onChange event where I want to change the value of file selected for some reason but I am unable to do that by using val property. It is not resetting the value of formFile. aCan anybody please suggest me what should i do to reset value of file.