hello,
Your validation code should be put in the myForm.java file. The base files
(xxxBase.java) are automatically generated by Camino and will be
overwritten - e.g. in cases where new attributes are added in the HTML
file. So, no custom codes should be put there.
Regards,
KinOnn
At 05:31 PM 4/3/2002 -0700, you wrote:
>Hi,
>
>Camino generates the validate block in the myForm.java file with the
>skeleton:
>
> public ActionErrors validate(ActionMapping actionMapping,
>HttpServletRequest request) {
> /**@todo: Override this org.apache.struts.action.ActionForm method*/
> return super.validate(actionMapping, request);
> }
>
>Where should I put my validation code, in this block or in the
>myFormBase.java code? For example, if I have a property empName and it must
>not be null, where would I put the test:
>
>if ((empName == null) || (empName.length() < 1))
> errors.add("empName", new
>ActionError("error.empname.required"));
>
>
>Thanks for your help,
>Phil Hershkowitz
>===
>To subscribe/unsubscribe, visit
>http://list.scioworks.com:8081/guest/RemoteListSummary/camino_user
---
Low Kin Onn Scioworks Technologies
e: [EMAIL PROTECTED] o: +65 873 5989
w: http://www.scioworks.com m: +65 9833 0967
===
To subscribe/unsubscribe, visit
http://list.scioworks.com:8081/guest/RemoteListSummary/camino_user