Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Property file not found
P.S.
Hello community,<br />
<br />
I have a simple table where the content should be displayed in i18n.<br />
The table content is a dynamic label and looks like:<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
var locale = Packages.java.util.Locale.GERMAN;
reportContext.getMessage(row["LANGUAGE"], locale);
</pre>
<br />
where "LANGUAGE" is a ResultSet value from SQL statement.<br />
<br />
Unfortunately my properties file is not read.<br />
<br />
Its located under:<br />
/WEB-INF/<br />
/WEB-INF/classes/<br />
/resources/<br />
/reportdesign/<br />
<br />
named:<br />
reporting.properties<br />
reporting_de.properties<br />
<br />
but none of these files is read.<br />
<br />
Where do I have to add a reference to these files?<br />
On global Eclipse settings it's only possible to add a absolute path.<br />
That's senseless, because these files won't be found after deployment into a Tomcat.<br />
<br />
Best regards<br />
Paul
Find more posts tagged with
Comments
P.S.
Solution is to add some lines into the xml definition:<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
<simple-property-list name="includeResource">
<value>WEB-INF/classes/reporting</value>
</simple-property-list>
</pre>
<br />
where "reporting" is the filename of the property file.