I need to change it as I am using the input to perform a search on the
Internet.

Which leads onto another question, does anyone know of a search engine
that returns just the URL and header, instead of all the banners and
other junk that usually comes with search engines.

I have found webferret, but I have no idea how to use this with a
servlet.

-----Original Message-----
From:   Andy Bailey [mailto:[EMAIL PROTECTED]]
Sent:   Thursday, August 12, 1999 2:48 PM
To:     [EMAIL PROTECTED]
Subject:        Re: Determining if there is a space in a string,

> 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

___________________________________________________________________________
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