[nobr]Hi Guys,I have a very simple problem with form data processing. I am a newbie here.I have got ...
By jattu1980a
i have made an application and its GUI using JFrames. The GUI is somewhat like a text editor PLUS op...
By mynameisanuraga
Hi, I have written a JSP that connects to a database, and then constructs a table with the records f...
By deaconj1234a
processing of post Login page where user will not aloow copy/paste url?...
By ravimanjua
Hi I have a code something like this in JSP. With this code i'm displaying a large number of records...
By briskrook, 1 Comments
hi therehow to implement SIP protocol?I just want to know if there is API for it?I want to design a ...
By sooda, 1 Comments
Hi everyone:I want to implement a singleton pattern while using Log4j.But what puzzle me is it need ...
By yashnooa, 2 Comments
Hello,At the moment i have a central static Configuration class that contains all the server-specifi...
By radicjesa, 3 Comments
Is there Any possiability of implementing Data Grid in Web Application .Can Any One Give Some inform...
By raghuveer_vellankia, 1 Comments
any takers?
jerry_garciaa | Sun, 15 Jul 2007 17:52:00 GMT |
Not sure if this will help, but you might want to do a check on the filenames first and if you find a white space in the filename replace the space with the ASCII representation of a space (%20) without the params...I haven't tested it or anything but it might be a
dapanther99a | Sun, 15 Jul 2007 17:52:00 GMT |
[nobr] I have determined that the request.getParameter value is what is getting truncated:
String[] fileNames = request.getParameterValues("cb");
int count = 0;if (fileNames != null) { count = fileNames.length; }
for (int i = 0; i < count; i++) { out.println(fileNames[i]+ "<br>"); }
The preceding code gives me:
file1.txt(actual name is file1.txt)
file2.txt(actual name is file2.txt)
file3.txt(actual name is file3.txt)
Copy(actual name is Copy of file3.txt)
So I tried this:
String[] fileNames = request.getParameterValues("cb");
int count = 0;if (fileNames != null) { count = fileNames.length; }
for (int i = 0; i < count; i++) { out.println(fileNames[i].replaceAll(" ","%20") + "<br>"); }
Which doesnt work.
Any ideas?[/nobr]
jerry_garciaa | Sun, 15 Jul 2007 17:52:00 GMT |