File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Do java support filenames with space between? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Do java support filenames with space between?" Watch "Do java support filenames with space between?" New topic
Author

Do java support filenames with space between?

Manoj Paul
Ranch Hand

Joined: Jan 18, 2007
Posts: 112
Hello friends..

Do java support filenames with space between?

Actually in my application when a user selects a folder what happens is that those files whose filename has a space between (e.g Good Boy.jpg ) is not shown on the display panel... but those with no problem as such (e.g GoodBoy.jpg, or Good_Boy.jpg) is clearly shown on the display panel...

Please Guide...
Thank you
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

If value is a string that contains spaces, then try this with enclose the string in double quotes.

hope it works.


Saifuddin..
[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61449
    
  67

Please take the time to choose the correct forum for your posts. This forum is for questions on JSP.

This post has been moved to a more appropriate forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Do java support filenames with space between?