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
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.
If you
To: 'Tomcat Users List'
Subject: RE: Can a url have a space in it?
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
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
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
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
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