You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Joe Hertz <jh...@speakeasy.net> on 2004/04/23 19:40:38 UTC

1.2 Issues

1) I'm finding that calls to Action.getServlet() are returning null. I
can't imagine what I've done to cause this. If so, what should I be
looking for?

2) The following Snippet of code compiled as of the 3/27 Nightly.

DynaActionFormClass dynaClass =
DynaActionFormClass.createDynaActionFormClass(
        formConfig);

Sometime before 4/14, it apparently dissapeared, now the snippet has to
read like this:

DynaActionFormClass dynaClass =
DynaActionFormClass.createDynaActionFormClass(
        formConfig, moduleConfig);

Is there a reason they both can't exist?

(yes, my day is just ducky)

-Joe




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: 1.2 Issues

Posted by Niall Pemberton <ni...@blueyonder.co.uk>.
Joe Hertz wrote:


> 1) I'm finding that calls to Action.getServlet() are returning null. I
> can't imagine what I've done to cause this. If so, what should I be
> looking for?

Don't understand why this happens AFAIK the only time the servlet is set to
null in an Action is when the RequestProcessor shuts down - i.e in its
destroy() method.


> 2) The following Snippet of code compiled as of the 3/27 Nightly.
>
> DynaActionFormClass dynaClass =
> DynaActionFormClass.createDynaActionFormClass(
>         formConfig);
>
> Sometime before 4/14, it apparently dissapeared, now the snippet has to
> read like this:
>
> DynaActionFormClass dynaClass =
> DynaActionFormClass.createDynaActionFormClass(
>         formConfig, moduleConfig);
>

My understanding is that the  form config used to have a reference to the
module config in it, but it was removed because it meant that if an
ActionForm was serialized then it tried to serialize the ModuleConfig as
well - so createDynaActionFormClass() used to get a reference for the
ModuleConfig from the form config, now it can't - so it needs to be passed
into the method.

> (yes, my day is just ducky)
>
> -Joe



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org