pls help! regular expressions for the validator

2002-11-18 Thread richmond te
I am trying to come up with a reg exp for valid char set that we use..We allow chars, numerics, space, hyphen, slash, full stop, and asterisk as per below.. I've got: charSet ^[a-zA-Z0-9\s-./*]*$ This works OK.. however.. I need the "&" ampersand as part of the valid char set.. Documentat

Re: pls help! regular expressions for the validator

2002-11-19 Thread richmond te
i have figured this one out - i used the hex code of ampersand in the regular expression.. --> ^[a-zA-Z0-9\x26\s-./*]*$ unless somebody out there has a better way of doing it.. let me know.. richmond te <[EMAIL PROTECTED]> wrote: Date: Mon, 18 Nov 2002 20:53:57 -0800 (PST) From: ri

validating float fields

2002-12-04 Thread Richmond Te
i have a 2dimensional array of fields that accept items and amount. i have amended the validateFloat method and validateMask method to keep iterating if errors are found so that error messages would appear for the whole list and not one by one, per row. (by commenting out the return false) th

validation

2002-12-08 Thread Richmond Te
I am wanting to validate if the user did not enter a filename, an error message to be displayed when submit is clicked. (ie. when no file name is entered) I have the following on the jsp: How would I validate if there is no file entered? I got the bit to work but not for the Thanks __

RE: Problems

2002-12-09 Thread Richmond Te
what happens when you click on submit and there is no file? i am having trouble with validating this via the struts validator plugin.. --- "Mouratidis, Georg" <[EMAIL PROTECTED]> wrote: > No i have String. > > i changed it into FormFile and it works. > i also inserted "import > org.apache.struts.

RE: Problems

2002-12-11 Thread Richmond Te
ew > ActionError("catalogimport.error.uploadfile.required")); > > //System.out.println("name=" + > uploadFile.getFileName()); > > return errors; > > } > > > -Original Message- > From: Richmond Te [mailto:[EMAIL PROTECTED]] &

bean:messages tag

2002-12-16 Thread Richmond Te
i am using fine but i need to assign that key value to my jsp scriptlet something like ie. <% String aKey = ""; int i = Integer.parseInt(aKey); %> but the "aKey" contains the text "" instead of the value it represents when declared outside a scriptlet.. thanks richmond ___