You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Uma <um...@net-kraft.com> on 2005/01/08 10:39:10 UTC

Validate with DynaActionForm

Hi,
How do I validate if a field is entered or not using the DynaActionForm?

My HTML form has <html:text/> and <html:radio/> buttons. I want to check if
the user has entered some text in the text field and that he has selected
the radio button.

If he has not selected, then show him a error message in the jsp. How to do
this? Do I need to configure any xml file for this? An example would be
great.

Thanks
Uma



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


Re: Validate with DynaActionForm

Posted by Janarthan Sathiamurthy <ja...@yahoo.com>.
Hi Uma,
 
Refer to struts-validation.war that comes with the struts distribution

Best Regards,
Janarthan S

Uma <um...@net-kraft.com> wrote:
Hi,
How do I validate if a field is entered or not using the DynaActionForm?

My HTML form has and buttons. I want to check if
the user has entered some text in the text field and that he has selected
the radio button.

If he has not selected, then show him a error message in the jsp. How to do
this? Do I need to configure any xml file for this? An example would be
great.

Thanks
Uma



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


		
---------------------------------
Do you Yahoo!?
 Read only the mail you want - Yahoo! Mail SpamGuard.