So what you're actually doing is creating a separate transfer window
in the browser, in effect the thread is created by the browser.  Sounds
hairy. :-P

Dimitar Stavrakov wrote:

>Hi Eric,
>You're correct you'll have to run the file upload method as a thread for
>this to work.
>
>Another way of doing it is as follows :
>
>I. 1st page - gather all info and submit to 2nd page
>II. 2nd page - display "Please wait" message and submit info from 1st page
>to background process ( in our case fileUpload)
>once background process is completed 2nd page will automatically redirect to
>III. 3rd page display successive message.
>
>Regards,
>
>        Dimitar
>
>
>-----Original Message-----
>From: Eric Noriega [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, October 10, 2002 1:09 PM
>To: [EMAIL PROTECTED]
>Subject: Re: File Upload
>
>    Do you have a reference for this?  I think that the servlet request
>may not be initiated until the client request completes the upload.
> Otherwise any variables stored after the files in the form would not be
>accessible until after the upload.  (i.e.. the upload is part of the
>POST transaction, and is basically "done" by the time the servlet is
>invoked.)
>
>Dimitar Stavrakov wrote:
>
>>Hi Uruj,
>>
>>What you need to do is create a jsp page that reloads itself every n number
>>of seconds. In your Servlet initialize a variable say uploadFile as false
>>and put it in the session. Have the jsp page check this variable every time
>>it reloads itself. Once the file upload is finished, have the Servlet
>>
>update
>
>>the value of the variable to true, and the have the jsp page redirect to a
>>success page or whatever you want it to redirect to.
>>
>>Regards,
>>
>>       Dimitar
>>
>>
>>-----Original Message-----
>>From: Urooj [mailto:[EMAIL PROTECTED]]
>>Sent: Wednesday, April 10, 2002 7:54 AM
>>To: [EMAIL PROTECTED]
>>Subject: Re: File Upload
>>
>>You guessed correctly, i am trying to do that but unable to succeed. If any
>>one can give me a clue i will be thankful to them.
>>regards
>>Uruj
>>On Thursday 10 October 2002 18:00, you wrote:
>>
>>>I guess you are asking for a progress bar?
>>>
>>>I Googled and found that this has been a topic of much discussion. I
>>>couldn't find any sample code though.
>>>Perhaps someone in this list has already solved it elegantly before.
>>>
>>>Neela
>>>----- Original Message -----
>>>From: "Urooj" <[EMAIL PROTECTED]>
>>>To: <[EMAIL PROTECTED]>
>>>Sent: Wednesday, April 10, 2002 8:02 AM
>>>Subject: File Upload
>>>
>>>>Is there any chance that only by using servlets, when a file is being
>>>>uploaded i can display a page or a popup window saying "file uploading",
>>>>
>>>and
>>>
>>>>as file upload success page when the file has been uploaded
>>>>
>>successfully.
>>
>>>>reagards
>>>>uruj
>>>>
>>___________________________________________________________________________
>>
>>>>To unsubscribe, send email to [EMAIL PROTECTED] and include in the
>>>>
>>>body
>>>
>>>>of the message "signoff SERVLET-INTEREST".
>>>>
>>>>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>>>>Resources: http://java.sun.com/products/servlet/external-resources.html
>>>>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>>>>
>>___________________________________________________________________________
>>
>>>To unsubscribe, send email to [EMAIL PROTECTED] and include in the
>>>
>>body
>>
>>>of the message "signoff SERVLET-INTEREST".
>>>
>>>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>>>Resources: http://java.sun.com/products/servlet/external-resources.html
>>>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>>>
>>___________________________________________________________________________
>>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>>of the message "signoff SERVLET-INTEREST".
>>
>>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>>Resources: http://java.sun.com/products/servlet/external-resources.html
>>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>>
>>___________________________________________________________________________
>>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>>of the message "signoff SERVLET-INTEREST".
>>
>>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>>Resources: http://java.sun.com/products/servlet/external-resources.html
>>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>>
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to