This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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


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: 61315
    
  66

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?