Hi, probably I did not make my original question clear, the UploadExample works, however, there are situations that we got a time out exception, how to track this exception in the following example? thanks for the help,
Angelo Angelo Chen wrote: > > Hi, > > following sample works, but how to determine if timeout error occurs? > thanks. > > public class UploadExample > { > private UploadedFile file; > > public UploadedFile getFile() > { > return file; > } > > public void setFile(UploadedFile file) > { > this.file = file; > } > > public void onSuccess() > { > File copied = new File("/my/file/location/" + > file.getFileName()); > > file.write(copied); > } > } > > -- View this message in context: http://www.nabble.com/T5%3A-FileUpload-and-time-out-tp18355064p18377198.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]