At 07:12 AM 4/22/99 -0700, you wrote:
>Hello,
>Can someone tell me how to get the following method
>of String to work
>String(char [], int, int)
>basically I have a form with several fields and I am
>trying to validate some of the fields.
>eg I am getting a value as
>String c1plnt = req.getParameterValues("C1PLNT")[0];
>basically I just need the first three characters of
>the parameter.
>Any suggestion?
String c1plnt = req.getParameterValues("C1PLNT")[0].substring(0, 3);
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html