tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brandon Cruz" <bc...@norvax.com>
Subject RE: Can a url have a space in it?
Date Fri, 18 Jan 2002 00:17:22 GMT
Thanks for responding Brian,

Users are creating folders with spaces in them, not in the parameters, so
the url is like this...

http://localhost/my folder/index.html

tomcat (or the browser) is successfully turning the url into

http://localhost/my%20folder/index.html

When you click on that url though, you get a 404 error.

-----Original Message-----
From: Brian Adams [mailto:bigb@satx.rr.com]
Sent: Thursday, January 17, 2002 6:08 PM
To: Tomcat Users List
Subject: RE: Can a url have a space in it?


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>



--
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