On Sun, 2 Sep 2001, Ara Abrahamian wrote:
>
> The case is really similar to dataobjects. In fact I think it's more
> correct to generate an ActionForm by deriving it from the generated
> dataobject.
you mean generate an ActionForm class that extends the ABCData
class? afaik action types must extend the struts Action class, so we cant
do that, which is why I have structured it as I have. on the other hand
if you mean have the dataobject extend the ActionForm class (which I
doubt) then we are binding a bit tight aren't we.
> But how to handle the validate method? I think the answer is
> a separate Validator object that operates on this ActionForm, more in
> par with javabeans' propertylistener/etc, and it can be used by both web
> tier and ejb tier.
to be honest I haven't worked with javabeans much, but think I can figure
out what you're talking about anyway. essentially have a validate method
that utilizes propertylisteners for its validation. The other thing there
is that the validate method returns an ActionErrors type, so I'm not sure
how the propertylisteners PropertyVetoExceptions (that is what they fire
isn't it?) would generate ActionError objects - as the latter are normally
constructed based on an application resources file.
anyway, will give it more thought today, but would be keen to hear your
thoughts on the above.
On the other side of the coin, I have done a
little more on websphere, but have really got to the point that I am not
needing it, and so dont have the understanding I need to do it - I will
see if I can get someone at work with a little more understanding of the
websphere files to have a look at it.
cheers
dim
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel