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]

Reply via email to