I'm not sure if this is related, but under Struts 1.1, I found it to be very
frustrating to try to create additional initialized actionForms in an
action.

In January, I refactored RequestUtils to expose a new public method, createActionForm(FormBeanConfig, ActionServlet) The ActionServlet may seem extraneous, but there are deep dependencies on it in the DynaForms, and I didn't want to monkey around with that.


http://jakarta.apache.org/struts/api/org/apache/struts/util/RequestUtils.html#createActionForm(org.apache.struts.config.FormBeanConfig,%20org.apache.struts.action.ActionServlet)

A possible shortcoming of the above is that it does no scope checking for already existing versions of the given form. I feel that it's not entirely straightforward as to the best way to expose that functionality. If we pursue this Renderer/ViewController idea, we'll probably have to find a resolution to that -- in fact, that's one of the reason I'm trying to drum up discussion instead of just plunging ahead and coding it.

So nightly builds since 1/24/04 (and, of course, Struts 1.2.0) include some of the functionality I think you were looking for.

Joe


--
Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the time with computers, and nobody thinks of complaining."
-- Jef Raskin


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



Reply via email to