Subject: Re: variable number of parameters in forms known at runtime From: Jose Quinteiro <[EMAIL PROTECTED]> === If I understand you correctly, you need to generate Java interfaces at run time. I believe this is possible. This article makes it sound like it's possible: http://java.sun.com/products/jfc/tsc/articles/generic-listener/index.html (Look at the end, where he talks about John Rose.)
You could then use the Dynamic Proxy API to implement these interfaces. This article introduces the API: http://java.sun.com/products/jfc/tsc/articles/generic-listener2/ I've used the Dynamic Proxy API - it's cool, but can be confusing. I've never tried to generate Java classes or interfaces at run-time, but it sounds like a cool project. On Mon, 06 May 2002 08:46:19 -0700, Adolfo Miguelez wrote: > Hi All, > > this is probably an ancient problem but I could not find any satisfying > solution browsin the forum. It seems to be a problem with catching of > input POST parameters in ActionForms linked to forms with variable input > parameters. > > We are using Struts 1.0.x and for the moment we do not what to upgrade > Struts 1.1. Please take in mind this point for the response. > > * First question, of course, is there any elegant solution for > implementing such an ActionForm so it can pick up the undetermined > number of parameters and how to handle them? > > * As a workaround I figure out a solution that I have seen neither > implement nor propossed at all, so I just wonder why: Would not be > possible, taking advantage of Yakarta/Commons DynaBeans, to create the > form beans on request, so they can auto-create, at runtime a parameter > and get/set method for each input parameter received in the request. > > AFAIK, DynaBeans are used to parse XML defined forms in struts-config. > However this does not solve our problems since we do not know the input > params at development or deployment time. Would not it be a proper > enhancement for handling forms with a number a name of parameters known > at runtime. > > Sorry if I am missing some points here, that I am afraid that so. > > Adolfo. > > > > > > _________________________________________________________________ MSN > Photos is the easiest way to share and print your photos: > http://photos.msn.com/support/worldwide.aspx > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> For additional > commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

