URLEncoding

In my J2EE application i have uploaded one MS word file

(Student Marklist March2007.doc)

while trying to download this word file am getting the following URL in the addressbar and statusbar

http://localhost/NewsUpdateFileCount.fms?fileId=244&

fileName=Student+Marklist+March2007.doc&

MODULE_NAME=NEWS_UPDATE_FOLDER&&newsUpdateId=60

But, i need the actual ms word file name should not change in the URL.

the URL should be like this:

http://localhost/NewsUpdateFileCount.fms?fileId=244&

fileName=Student Marklist Mach2007.doc&

MODULE_NAME=NEWS_UPDATE_FOLDER&&newsUpdateId=60

In servlet all "spaces" are replaced with "+"

Please any one suggest me to solve this problem.

Regards

Dhinesh kumar R

[814 byte] By [URLEncodinga] at [2007-11-27 0:27:47]
# 1
That's to make it into a valid URL and it is essential. Use URLDecoder to get it back the way you need it.
ejpa at 2007-7-11 22:27:59 > top of Java-index,Core,Core APIs...