This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes Indentation in ResourceBundles .properties files. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Indentation in ResourceBundles .properties files." Watch "Indentation in ResourceBundles .properties files." New topic

Indentation in ResourceBundles .properties files.

J. Hull

Joined: Jan 23, 2013
Posts: 2
Is it okay to indent a key name in ResourceBundles .properties files? What I am trying to do looks something like such.

I apologize if this is a duplicate of another question but I have just had no luck searching elsewhere. In advance I thank you for any help with this question.
Joanne Neal

Joined: Aug 05, 2005
Posts: 3414
Have you tried writing a simple test program to read those keys ? Did it work ?

J. Hull

Joined: Jan 23, 2013
Posts: 2
I suppose I might have been more specific, I was asking if it was good style, not whether or not it works (Which as you pointed out is rather easy to find). I apologize for my poorly worded question.
I agree. Here's the link:
subject: Indentation in ResourceBundles .properties files.
Similar Threads
How to access the request from an ActionServlet?
Properties or Resource Bundle
properties v/s constants
Struts 2: How do you display currency in a textfield?
ResourceBundle character set