You could use a LazyDynaMap to do this (with Struts 1.2.4). LazyDynaMap is a "wrapper" for a Map. Because its not an ActionForm Struts will wrap it in a BeanValidatorForm, which you can use with Validator.
Just specify it in the struts-config.xml for your form. <form-bean name="mapForm" type="org.apache.commons.beanutils.LazyDynaMap"/> In your action you can get the actual Map in the following way... LazyDynaMap dynaMap = ((BeanValidatorForm)form).getInstance(); Map myMap = dynaMap.getMap(); http://jakarta.apache.org/commons/beanutils/apidocs/org/apache/commons/beanutils/package-summary.html#dynamic.lazy http://jakarta.apache.org/commons/beanutils/apidocs/org/apache/commons/beanutils/LazyDynaMap.html Niall ----- Original Message ----- From: "Andrew Waite" <[EMAIL PROTECTED]> Sent: Saturday, February 12, 2005 3:54 PM > I have searched far and wide for an update to this topic but can not > seem to find an actual solution. > > Has anyone accomplished this? I know in one thread Ted Husted > mentioned it being possible but had questions about the use case, well > if you're listenening here's my use case. > > I am writing a client to a web-service that returns layout information > and field required/data types dynamically. I never know what the > schema will be but I do get the metadata in regards to what the data > type is and whether the field is required for form submission. > > Hope that helps the creative juices out there. > > Thanks for any help that can be provided. > > Andrew --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]