> Hello all,
>
> One of my servlet's receives a parameter in the form of a string, is
> there anyway I can search this string and find if there are any spaces
> in it?
> And if so is there anyway of changing the space with a plus sign?
>
>
> Cheers
>
boolean space = (param.indexOf(" ") > -1)

Why do you need to change " " to "+", you might not need to.

Andy Bailey

___________________________________________________________________________
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

Reply via email to