Hi folks. I sent a doubt about how to validate only some fields from an
action form
In my validation, all work fine. But I have an action class for an
actionform. This action class extends dispatchaction (in other cases extends
lookupdispatchaction) because in my jsp i have several buttons in o
TED]>
07/15/2005 05:50 PM
Please respond to
"Struts Users Mailing List"
To
Struts Users Mailing List
cc
Subject
Re: Some advice
Hi Basudeb Acharya for ur help... It's really that I want =)
Ex.llitia2. I'd like you are more specific. My code in ActionFor
Ok, I see u code in a validate form.
But I'm using validation framework. How can I use it with this?
--
Rafael Taboada
Software Engineer
Cell : +511-97753290
"No creo en el destino pues no me gusta tener la idea de controlar mi vida"
|
| cc:
Hi Basudeb Acharya for ur help... It's really that I want =)
Ex.llitia2. I'd like you are more specific. My code in ActionForm is:
ActionErrors errors = ventaForm.validate(mapping,request);
if (errors==null || errors.isEmpty()) {
//Do something because all is OK
}
else
saveErrors(request,errors
For 2> how about readonly=true works fine in our case.
Basudeb Acharya
Tata Consultancy Services Limited
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com
Rafael Taboada <[EMAIL PROTECTED]>
07/15/2005 01:44 PM
Please respond to
"Struts Users Mailing List"
To
Struts List
cc
S
Hi,
For the dot 1, you can put a hidden field in the form to indicate
waht type of validation you have to use. In the method validate of the
ActionForm, you will choice the fields you need validate depending hidden
field's value.
I hope help you
|-+-
7 matches
Mail list logo