What about adding some functionality to the ActionForm.validate() method,
which would validate formatting, i.e. if a form contains a Data JavaBean
with int's, Date's, etc. ActionForm.validate() would try to populate those
(like it does at the moment), but if it failed, it would automatically (set
with a true/false parameter) add an error to the ActionForm.errors object...

What do you people think?

Seems a lot of people are running into this limitation (not being able to
distinguish between formatting errors or invalid input or valid input),
resolving which would take struts a level up...

I would like to maybe even try adding this functionality in myself, but I'm
not sure how I'd go about that under the open source conditions..

Thanks,

Mike


=**********************************************************

If you are not the intended recipient, employee or agent responsible for delivering 
the message to the intended recipient, you are hereby notified that any dissemination 
or copying of this communication and its attachments is strictly prohibited.

If you have received this communication and its attachments in error, please return 
the original message and attachments to the sender using the reply facility on e-mail.

Internet communications are not secure and therefore the UCLES Group does not accept 
legal responsibility for the contents of this message.  Any views or opinions 
presented are solely those of the author and do not necessarily represent those of the 
UCLES Group unless otherwise specifically stated.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses although this does not guarantee that 
this email is virus free.

**********************************************************=

Reply via email to