dude, I am with ya now!
okay, I tried on my server just now and it work!
I made a directory named "a b" inside my $TOMCAT4/webapps/test/  folder and
put in it a index.jsp page.
Ten I tried "localhost:8080/test/a b/index.jsp" and it worked...
so then I said hmmmm wonder if it works through Apache so I did
"localhost/test/a b/index.jsp"  (notice port 80 now) and it also worked...
I wonder what is wrong with yours...
:(


I did this on a dev box: win2000, tomcat 4.0.1ish and apache 1.3
B

-----Original Message-----
From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 17, 2002 6:17 PM
To: Tomcat Users List
Subject: RE: Can a url have a space in it?


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:[EMAIL PROTECTED]]
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:[EMAIL PROTECTED]]
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:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to