manual validation by configuring 'validate=false' is very handy in some cases I have 
also implemented it ...


-----Original Message-----
From: Adam Hardy [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2003 3:13 PM
To: Struts Users Mailing List
Subject: Re: Actions Best Practice

Erez Efrati wrote:

> One of the problem I found with 'action=init' method, is that the
> validation is activated automatically for both cases (both init & send),
> and fails of course on the 'init' cause no field is yet in the form. So
> I was forced to configure 'validate=false' and call it manually in the
> Action code.
> 

Option B would be compacter. You can write two action mappings in 
struts-config to distinguish the calls, where one has no validation and 
the other does.

I know some people don't like having extra action mappings in their 
struts-config, but I believe that is what they are there for.


Adam


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



*----------
This message and any attachment(s) is intended only for the use of the addressee(s) 
and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the 
intended addressee(s), you are hereby notified that any use, distribution, disclosure 
or copying of this communication is strictly prohibited. If you have received this 
communication in error, please erase all copies of the message and its attachment(s) 
and notify the sender or Kanbay postmaster immediately.

Any views expressed in this message are those of the individual sender and not of 
Kanbay.

Although we have taken steps to ensure that this e-mail and any attachment(s) are free 
from any virus, we advise that in keeping with good computing practice the recipient 
should ensure they are actually virus free.


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

Reply via email to