tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Adams" <b...@satx.rr.com>
Subject RE: Can a url have a space in it?
Date Fri, 18 Jan 2002 00:08:26 GMT
if it is in your URL then it should %20  that represents a space in a string
so
if uRL was http:/localhost/servlet/test?file=my%20documents
then when your do :
String paramV = request.getParameter("file");
out.println("File Path is: " + paramV);


this should make paramV = "my documents"

is this what your looking for?
B
Anyone correct me if I am wrong please.


-----Original Message-----
From: Brandon Cruz [mailto:bcruz@norvax.com]
Sent: Thursday, January 17, 2002 5:31 PM
To: Tomcat Users List
Subject: Can a url have a space in it?


When using tomcat 3.2.4, is it invalid to create a folder called "/my
folder"?  It looks like tomcat turns the url into "my%folder", which I
thought should work, but it can't find any files in this directory.  Is this
correct, is there something I can do to allow tomcat to find files in a
directory with a space in it?

Brandon


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>



--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message