A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Programmer Certification (SCJP/OCPJP)
Joined: Apr 05, 2007
Apr 05, 2007 06:41:00
application i have uploaded one MS
(Student Marklist March2007.doc)
while trying to download this word file am getting the following URL in the addressbar and statusbar
But, i need the actual ms word file name should not change in the URL.
the URL should be like :
fileName=Student Marklist Mach2007.doc&
all "spaces" are replaced with "+"
Please any one suggest me to solve this problem.
Dhinesh kumar R
Joined: Nov 16, 2006
Apr 05, 2007 07:17:00
URLs may not have spaces in them. If you want a space in the URL it must be encoded. The + symbol is used to replace a space when encoding a URL. There are various websites that will help with URL encoding/decoding. If when you have extracted the value from the URL still contains the encoded characters you will have to decode it yourself. You could use the static decode method supplied in the
class. The API found (
) states it will decode the + back to a space. There is also a matching encoding class and static method. The API can be found at
Hope this helps.
[ April 05, 2007: Message edited by: Quintin Stephenson ]
If at first you don't succeed, try, try again. If you don't try you have failed.
I agree. Here's the link:
how to a war file in TOMCAT
Extracting images and figures from Word Doc
Important and Urgent - Please reply
how to retrieve image from database?
restricted files access using apache/jakarta tomcat
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014