You have to url encode the string.

replace white space with %20

So if you were passing 'Man clothes' it would have to be sent to the url as
'man%20clothes'.


Scott Cavanaugh
Lead Software Developer
Online Operations
Salem Communications Corporation

-----Original Message-----
From: Marcos Lloret [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 20, 2000 9:43 AM
To: [EMAIL PROTECTED]
Subject: problem calling to a servlet


hi list,

    i have a string like this =  'Man clothes'

when i call a servlet i do it like that:

    ..../servlets/myservlet?str=Man clothes&......

but it does not work.. because it only gets up to

    ..../servlets/myservlet?str=Man

but i need all the string because i have to look for this string into a
database.


any suggestions will be pleased,

marcos
[EMAIL PROTECTED]

___________________________________________________________________________
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