validation question

2004-01-20 Thread Nandita Rajagopalan
Hi,

I have a form that is shared my multiple JSPs. My problem comes in validating the 
form. One text field which is required in a page is not in the other. How do I set up 
the validation.xml to be generic enough so that the above condition can be met.

Thanks for any help.



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



question on using a different resource bundle in validation.xml

2003-12-11 Thread Nandita Rajagopalan
Is there a way that I can use keys from a different resource bundle other than 
ApplicationResources.properties in the validation.xml. Or is the default bundle the 
only place I can use to place keys for my messages.



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



Newbie to struts with a question on text fields

2003-12-01 Thread Nandita Rajagopalan
Hi,

I have a textbox which is supposed to hold a numeric value - ie the property 
corresponds to a numeric datatype in the Action form. If I leave this textbox empty , 
I want my validate method to catch it and print an error as this field is a required 
field. However, when I leave this text empty, a value of  0 gets placed in the 
property's value . 0 is an allowed value and hence no error gets dumped. How do I get 
around this problem ?

Thanks.

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