Hey Angelo,

It'd be helpful to see the exception that you're talking about.

Josh

On Thu, Jul 10, 2008 at 12:11 AM, Angelo Chen <[EMAIL PROTECTED]>
wrote:

>
> 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]
>
>


-- 
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.

Reply via email to