That sounds good. I will make the necessary code changes and try to
register with Struts2 repository.

There is one feature that I want to add to cos file upload - make the
file upload interruptible. Large file uploads can sometime take a lot
of time  and you want transaction to timeout gracefully in such a case
(by setting a timeout on transactioninterceptor that starts the
transaction as soon as the request arrives in). When the transaction
times out, transactionmanager issues an interrupt on the thread
handling the request but in our case, this will go ignored as blocking
i/o calls are not interruptible (unless using a nio channel). So there
is a potential for this thread to get hosed up.

In general, i believe that any operation that takes potentially large
time should add hooks to get interrupted gracefully.

Any takers for this idea?

Deepak

On Jan 19, 2008 5:10 PM, Don Brown <[EMAIL PROTECTED]> wrote:
> Yep, we can't have any code that depends on that library in any
> ASF-sponsored release.  You should be able to take the code as it
> existed in WebWork 2.2 and port it to Struts 2, using the pell file
> upload plugin as an example.  Then, put the code up somewhere like
> Google Code and register your plugin with our Plugin Repository to
> share it with the community (if you so choose).
>
> Don
>
>
> On Jan 19, 2008 10:34 PM, deepak aggarwal <[EMAIL PROTECTED]> wrote:
> > Thanks Don. I am willing to buy his book but still there seems to be
> > an issue. cos.jar distribution on Jason's website is from Nov.2002 and
> > when I downloaded the source, it didn't compile with JDK 1.5 ( because
> > it used classes like Enumeration and Servlet 2.3 api and we are using
> > servlet api 2.4). Does it mean that if I want to use it in my app, I
> > would have to make the necessary changes to make it work and maintain
> > the source code?
> >
> > Deepak
> >
> >
> > On Jan 19, 2008 4:49 PM, Don Brown <[EMAIL PROTECTED]> wrote:
> > > It was pulled due to lack of license compatibility.  It had a special
> > > license that required every member of your development team to buy a
> > > copy of Jason Hunter's Servlets book if you used it in a production
> > > system.
> > >
> > > Don
> > >
> > >
> > > On Jan 19, 2008 10:11 PM, deepak aggarwal <[EMAIL PROTECTED]> wrote:
> > > > I have been trying out various file upload plugins that struts2
> > > > supports. I could find jakarta (included with struts distribution) and
> > > > pell (included in struts2-pell-multipart-plugin-2.0.9.jar) plugins,
> > > > but nowhere could I find cos plugin. I was browsing through various
> > > > sites and saw on one of the pages that these three plugins were once
> > > > in struts2.dispatcher.multipart package. But now only jakarta remains
> > > > there and pell has been bundled into a separate jar.
> > > >
> > > > But, the original question remains, whatever happened to cos?
> > > >
> > > > ---------------------------------------------------------------------
> > > > 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]
> >
> >
>
> ---------------------------------------------------------------------
> 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]

Reply via email to