From: Anthony E. <me...@an...> - 2002-07-06 03:51:03
|
> -----Original Message----- > From: for...@li... > [mailto:for...@li...] On > Behalf Of Nicholas Sanderson > Sent: Friday, July 05, 2002 8:39 PM > To: for...@li... > Subject: [FormProc-developer] Data from session Object > > > Hi > > I've just started using formproc and I really like it. Glad to hear it. > A couple of questions: > > 1. I'm using formproc in a web environment where everything > gets reused - ejb pooling, connection pooling etc. > > How much resource optimisation does formproc perform? Could > the HttpForm objects be allocated from a pool rather than a > new one being created for each new transaction. I don't see any reason why this would be a problem. You would just have to make sure to configure the form properly before using it. You could either do this when HttpForm objects are initially put into the pool, or you could do it at each request (although I think that this would negate the benefits of pooling). I don't really think this should go into the FormProc lib though - perhaps if you put together a system for pooling HttpForm objects you can contribute it back to the community. I would be happy to add it to the CVS as a contribution and make a note of it on the FormProc web site. > > 2. The object autopopulate feature is extremely useful. Could > the HttpForm be extended so it could find data from the user > session as well as from the request? After all it can get the > session from the request and it would be quite elegant to > combine the two. I just wrote up an extension of the HttpForm class (called org.formproc.servlet.ExtendedHttpForm) real quick and placed it in the CVS server. I haven't tested it but let me know if it will do the job or if there is something I can do to make it better. Sincerely, Anthony Eden |