Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

bullet characters in properties files

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you have bullets in a properties file? If so, how?
 
Sheriff
Posts: 15815
264
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ajay,

It might help us come up with some suggestions if you give a little more context, like what it is you hope to gain by having bullets in a properties file. Or give an example of what you are trying. Or better yet, try it yourself and if it doesn't work, come back and ask questions about why what you're doing doesn't work. Thanks.
 
Sheriff
Posts: 3036
12
Mac IntelliJ IDE Python VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use Unicode character codes. U+2022 is a common bullet character.

test.properties
-------------------------------------------------
greeting=hello
this.message=\u2022 My message
other.message=\u2022 My other message

I have to say though, properties files are more about content, and bullets are more about presentation. You might not want to mix them like that.
 
Junilu Lacar
Sheriff
Posts: 15815
264
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Greg Charles wrote:I have to say though, properties files are more about content, and bullets are more about presentation. You might not want to mix them like that.



I couldn't agree more. Mixing concerns (values vs presentation) leads to problems. You should keep formatting concerns like bullets and the like in things like CSS if you're writing a web app or something that's closer to the presentation tier.
 
    Bookmark Topic Watch Topic
  • New Topic