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
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
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
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
__
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.
ew
>
ActionError("catalogimport.error.uploadfile.required"));
>
> //System.out.println("name=" +
> uploadFile.getFileName());
>
> return errors;
>
> }
>
>
> -Original Message-
> From: Richmond Te [mailto:[EMAIL PROTECTED]]
&
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
___
7 matches
Mail list logo