File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Concatenation character in Tomcat4.1.31 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Concatenation character in Tomcat4.1.31" Watch "Concatenation character in Tomcat4.1.31" New topic
Author

Concatenation character in Tomcat4.1.31

Rajendar Goud
Ranch Hand

Joined: Mar 06, 2002
Posts: 220
Hi,
i was working on tomcat3.22 and i had some java script functions, which had '+' for concatenating the file names.
eg :
"/public/doku/U130+Welcome+Guide+v1-2.pdf"

its working fine with tomcat3.22 . but when i migrated it to 4.1.31,the concatenation character + doesnt seem to be working and i am getting PAGE
NOT FOUND character.

any help pls?


Thanks,
Rajendar
Rajendar Goud
Ranch Hand

Joined: Mar 06, 2002
Posts: 220
Any suggesstions?
Scott Dunbar
Ranch Hand

Joined: Sep 23, 2004
Posts: 245
Replace the '+' with a %20. I don't think that any of the modern Tomcat's do a URLDecode on the string.

But why do you need it in the first place? Doesn't Tomcat handle the spaces in the file name fine even on Unix?


<a href="http://forums.hotjoe.com/forums/list.page" target="_blank" rel="nofollow">Java forums using Java software</a> - Come and help get them started.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Concatenation character in Tomcat4.1.31