[file upload] Progress Listener

2007-04-11 Thread Leena Kulkarni
Has anyone implemented the commons file upload progres
listener?

1. Can it be used only with streaming API and not
normal upload?
2. Not sure where to put the following code referred
on the site under watch progress:

//Create a progress listener
ProgressListener progressListener = new
ProgressListener(){
   public void update(long pBytesRead, long
pContentLength, int pItems) {
   System.out.println("We are currently reading
item " + pItems);
   if (pContentLength == -1) {
   System.out.println("So far, " + pBytesRead
+ " bytes have been read.");
   } else {
   System.out.println("So far, " + pBytesRead
+ " of " + pContentLength
  + " bytes have been
read.");
   }
   }
};
upload.setProgressListener(progressListener);


Also Im note sure to transform these sysouts into
something to show actually on the upload page.

Regards,
Leena


   

No need to miss a message. Get email on-the-go 
with Yahoo! Mail for Mobile. Get started.
http://mobile.yahoo.com/mail 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: file upload + progress listener

2006-10-23 Thread Henri Yandell

Yeah, it wouldn't be terrible to add, but I think that current dev
javadoc is a feature of the CI system and not of websites or
documentation. So a mental note to look into adding javadoc generation
to Phil's nightly build stuff.

Hen

On 10/21/06, Andrew Serff <[EMAIL PROTECTED]> wrote:

That's pretty cool, except it doesn't have a current dev version of the
java doc as well.

Andrew
Henri Yandell wrote:
> On 10/19/06, Andrew Serff <[EMAIL PROTECTED]> wrote:
>> It looks like that only exists in the nightly builds.  That is
>> frustrating...can I rant for a second?
>>
>> Why is the javadoc on the main page pointing to non-released code?  the
>> javadoc should point to the currently released version.  And it would
>> also be nice if you guys (fileupload devs) could annotate your classes
>> with when they were added to the API.  Like "since 1.2."  That way, this
>> confusion wouldn't happen.
>
> Agreed. Here's my proposed solution:
>
> http://people.apache.org/~bayard/multidoc-jnr/
>
> Just updated it with a bunch more versions.
>
> Hen
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: file upload + progress listener

2006-10-21 Thread Andrew Serff
That's pretty cool, except it doesn't have a current dev version of the 
java doc as well. 


Andrew
Henri Yandell wrote:

On 10/19/06, Andrew Serff <[EMAIL PROTECTED]> wrote:

It looks like that only exists in the nightly builds.  That is
frustrating...can I rant for a second?

Why is the javadoc on the main page pointing to non-released code?  the
javadoc should point to the currently released version.  And it would
also be nice if you guys (fileupload devs) could annotate your classes
with when they were added to the API.  Like "since 1.2."  That way, this
confusion wouldn't happen.


Agreed. Here's my proposed solution:

http://people.apache.org/~bayard/multidoc-jnr/

Just updated it with a bunch more versions.

Hen

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: file upload + progress listener

2006-10-20 Thread Henri Yandell

On 10/19/06, Andrew Serff <[EMAIL PROTECTED]> wrote:

It looks like that only exists in the nightly builds.  That is
frustrating...can I rant for a second?

Why is the javadoc on the main page pointing to non-released code?  the
javadoc should point to the currently released version.  And it would
also be nice if you guys (fileupload devs) could annotate your classes
with when they were added to the API.  Like "since 1.2."  That way, this
confusion wouldn't happen.


Agreed. Here's my proposed solution:

http://people.apache.org/~bayard/multidoc-jnr/

Just updated it with a bunch more versions.

Hen

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: file upload + progress listener

2006-10-19 Thread Andrew Serff
It looks like that only exists in the nightly builds.  That is 
frustrating...can I rant for a second?


Why is the javadoc on the main page pointing to non-released code?  the 
javadoc should point to the currently released version.  And it would 
also be nice if you guys (fileupload devs) could annotate your classes 
with when they were added to the API.  Like "since 1.2."  That way, this 
confusion wouldn't happen.


Ok, sorry for the rant...In any case Kenji, get the latest development 
version.  Hope that helps.


Andrew

Leonardo Kenji Shikida wrote:

I've downloaded fileUpload 1.1.1

at http://jakarta.apache.org/commons/fileupload/using.html

there is an example showing how to use a progress listener object

but I can't use the method

ServletFileUpload.setProgressListener(progressListener)

because I can't find where the class ProgressListener is

TIA

[]

Kenji
___
http://kenjiria.blogspot.com
http://gaitabh.blogspot.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



file upload + progress listener

2006-10-19 Thread Leonardo Kenji Shikida

I've downloaded fileUpload 1.1.1

at http://jakarta.apache.org/commons/fileupload/using.html

there is an example showing how to use a progress listener object

but I can't use the method

ServletFileUpload.setProgressListener(progressListener)

because I can't find where the class ProgressListener is

TIA

[]

Kenji
___
http://kenjiria.blogspot.com
http://gaitabh.blogspot.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]