Reputation: 26637
I'd like to know how to write comments in properties file that is used like this
PF47=Ankomstdatum måste anges innan SIS kan avslutas. # AF PCT
#
is supposed to mean a comment but when I render the messages with fmt format JSTL tag output includes the comment. Do comments in properties file have to be on a separate line?
Thank you
Upvotes: 0
Views: 635
Reputation: 691973
The format is described in the java.util.Properties documentation. And yes, the #
character is only considered as the start of a comment if it's the first non-whitespace character of the line.
Upvotes: 1
Reputation: 3078
It seems as if java-property files only allow comments on separate lines, so you need to write
# AF PCT
PF47=Ankomstdatum måste anges innan SIS kan avslutas.
Upvotes: 1