But since I am not writing any validate() method, how do my validate() get
fired? And if I have to show error messages to the user, how do I handle
this?

Sorry if my questions are stupid, I am new to struts.

Uma

-----Original Message-----
From: Pedro Salgado [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 10, 2005 5:29 AM
To: Struts Users Mailing List
Subject: Re: Help with DynaActionForm


  check commons-validator.

  declare the commons-validator plugin on your struts-config.xml.
  use the validator-rules to specify validation rules (basic copy paste).
  use the validation.xml to specify the rules that apply to which fields on
a form.

  on your jsp use <html:javascript/>.


Pedro Salgado

On 10/1/05 2:16 pm, "Kalluru Uma. Maheswar"
<[EMAIL PROTECTED]> wrote:

> Hi,
> 
> I posted the same question last week but could not get any reply. Can
> someone help me please?
> 
> 
> 
> 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: [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