http://struts.apache.org/learning.html#Examples

But, it's not required.

This check was made in earlier versions of the Struts Mailreader and justified as 
"defensive programming". If the ActionForm was missing, the Action created one. Later, 
the check was removed, since the Action should not be compensating for a broken API 
contract. If an Action expects an ActionForm, than any ActionMapping that wants to use 
it must provide one. The Action should fail if its contract is broken.

The best strategy might be to check for null, log if its missing, and then throw a 
very large exception to "nip it the bud".

-Ted.

On Thu, 15 Jul 2004 11:11:08 +0530, Viral_Thakkar wrote:
> Hi All,
>
> Is there place where I can find struts example projects? I need to
> see the coding style and whether null checking in Action class is
> required or not.
>
> I am not using ActionForm in my project.
>
> Regards,
> Viral
>
>
> --------------------------------------------------------------------
> - To unsubscribe, e-mail: [EMAIL PROTECTED] For
> additional commands, e-mail: [EMAIL PROTECTED]



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

Reply via email to