How to Upload a file to my server

2008-03-06 Thread Yeeswara Nadapana (HCL Financial Services)
Hi, I am using Tapestry 5 for my application. I want to upload an excel file to the Tomcat server. On HTML, I am using the input t:type=upload t:id=strategyFile / and on java file, I written as: File stratFile = new File(c:/temp/+strategyFile.getFileName());

Re: How to Upload a file to my server

2008-03-06 Thread Angelo Chen
can't find anything wrong, try to dump the file name, is it valid? private String fname = c:/temp/+strategyFile.getFileName(); System.out.println(fname); Yeeswara Nadapana (HCL Financial Services) wrote: File stratFile = new File(c:/temp/+strategyFile.getFileName());