<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.5" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Externalizing Configuration with Spring</title>
	<link>http://www.kleineikenscheidt.de/stefan/archives/2005/06/default-configuration-with-spring.html</link>
	<description>Integration Architecture and Engineering</description>
	<pubDate>Thu, 29 Jul 2010 13:32:47 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.5</generator>

	<item>
		<title>by: Murugan</title>
		<link>http://www.kleineikenscheidt.de/stefan/archives/2005/06/default-configuration-with-spring.html#comment-121764</link>
		<pubDate>Mon, 30 Mar 2009 15:12:59 +0000</pubDate>
		<guid>http://www.kleineikenscheidt.de/stefan/archives/2005/06/default-configuration-with-spring.html#comment-121764</guid>
					<description>Hey,

   I am new to spring I would like to get the value in from a properties file in (for e.g. WEB-INF/env.properties) in a jsp page (I would like to display what environment it is) .

  How can I do it?..a brief approach can help me..Thanks...</description>
		<content:encoded><![CDATA[<p>Hey,</p>
<p>   I am new to spring I would like to get the value in from a properties file in (for e.g. WEB-INF/env.properties) in a jsp page (I would like to display what environment it is) .</p>
<p>  How can I do it?..a brief approach can help me..Thanks&#8230;
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Wunschdenken &#187; Blog Archiv &#187; Spring configuration properties: Defaults and Reloading</title>
		<link>http://www.kleineikenscheidt.de/stefan/archives/2005/06/default-configuration-with-spring.html#comment-13810</link>
		<pubDate>Sun, 24 Dec 2006 12:18:01 +0000</pubDate>
		<guid>http://www.kleineikenscheidt.de/stefan/archives/2005/06/default-configuration-with-spring.html#comment-13810</guid>
					<description>[...] In out-of-the-box Spring, there are two ways to do this with a PropertyPlaceholderConfigurer: either put a list of default property bindings into the XML file itself, or put them into another Properties file, which may be contained as a resource in the jar file. Stefan Kleineikenscheidt has a good description of this approach. [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] In out-of-the-box Spring, there are two ways to do this with a PropertyPlaceholderConfigurer: either put a list of default property bindings into the XML file itself, or put them into another Properties file, which may be contained as a resource in the jar file. Stefan Kleineikenscheidt has a good description of this approach. [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Stefan</title>
		<link>http://www.kleineikenscheidt.de/stefan/archives/2005/06/default-configuration-with-spring.html#comment-414</link>
		<pubDate>Wed, 10 Aug 2005 22:21:34 +0000</pubDate>
		<guid>http://www.kleineikenscheidt.de/stefan/archives/2005/06/default-configuration-with-spring.html#comment-414</guid>
					<description>Hi J.,  that's exactly my point, the default properties are in the context definition, while an external file (editable by administrators and the like) can be used to override the default values.
</description>
		<content:encoded><![CDATA[<p>Hi J.,  that&#8217;s exactly my point, the default properties are in the context definition, while an external file (editable by administrators and the like) can be used to override the default values.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: j. betancourt</title>
		<link>http://www.kleineikenscheidt.de/stefan/archives/2005/06/default-configuration-with-spring.html#comment-412</link>
		<pubDate>Sat, 06 Aug 2005 16:20:13 +0000</pubDate>
		<guid>http://www.kleineikenscheidt.de/stefan/archives/2005/06/default-configuration-with-spring.html#comment-412</guid>
					<description>Maybe more correct is to say that a properties place holder configurer uses a Properties to replace stuff.  Does not have to come from a properties file.

For example, you can set the "properties" property to a PropertiesFactoryBean in the context.



</description>
		<content:encoded><![CDATA[<p>Maybe more correct is to say that a properties place holder configurer uses a Properties to replace stuff.  Does not have to come from a properties file.</p>
<p>For example, you can set the &#8220;properties&#8221; property to a PropertiesFactoryBean in the context.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Stefan</title>
		<link>http://www.kleineikenscheidt.de/stefan/archives/2005/06/default-configuration-with-spring.html#comment-411</link>
		<pubDate>Tue, 02 Aug 2005 22:41:49 +0000</pubDate>
		<guid>http://www.kleineikenscheidt.de/stefan/archives/2005/06/default-configuration-with-spring.html#comment-411</guid>
					<description>Sebastian gave me a hint. Thanks for that!
(in fact, the sample was not as it is my actual project's app context)

-----Original Message-----
From: sebastian [mailto:xxxxxx@xxxxx.xxxx] 
Sent: Tuesday, August 02, 2005 10:07 AM
To: Stefan Kleineikenscheidt
Subject: Re: Spring Configuration


the correct syntax for the  element in spring reads

&lt;code&gt;&#60;props&#62;
&#160;&#160;&#60;prop key="theKey"&#62;theValue&#60;/prop&#62;
&#60;/props&#62;&lt;/code&gt;

instead of 

&lt;code&gt;&#60;props&#62;
&#160;&#160;&#60;prop key="theKey"&#62;
&#160;&#160;&#160;&#160;&#60;value&#62;theValue&#60;/value&#62;
&#160;&#160;&#60;/prop&#62;
&#60;/props&#62;&lt;/code&gt;

maybe this changed only in a newer version of spring and your syntax
still works with an older version...

anyways, could you kindly remove the two comments i have posted, they
are rather confusing (with the braces not being displayed)...

brgrds,
sebastian
</description>
		<content:encoded><![CDATA[<p>Sebastian gave me a hint. Thanks for that!<br />
(in fact, the sample was not as it is my actual project&#8217;s app context)</p>
<p>&#8212;&#8211;Original Message&#8212;&#8211;<br />
From: sebastian [mailto:xxxxxx@xxxxx.xxxx]<br />
Sent: Tuesday, August 02, 2005 10:07 AM<br />
To: Stefan Kleineikenscheidt<br />
Subject: Re: Spring Configuration</p>
<p>the correct syntax for the  element in spring reads</p>
<p><code>&lt;props&gt;<br />
&nbsp;&nbsp;&lt;prop key="theKey"&gt;theValue&lt;/prop&gt;<br />
&lt;/props&gt;</code></p>
<p>instead of </p>
<p><code>&lt;props&gt;<br />
&nbsp;&nbsp;&lt;prop key="theKey"&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;value&gt;theValue&lt;/value&gt;<br />
&nbsp;&nbsp;&lt;/prop&gt;<br />
&lt;/props&gt;</code></p>
<p>maybe this changed only in a newer version of spring and your syntax<br />
still works with an older version&#8230;</p>
<p>anyways, could you kindly remove the two comments i have posted, they<br />
are rather confusing (with the braces not being displayed)&#8230;</p>
<p>brgrds,<br />
sebastian
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Stefan</title>
		<link>http://www.kleineikenscheidt.de/stefan/archives/2005/06/default-configuration-with-spring.html#comment-410</link>
		<pubDate>Thu, 28 Jul 2005 20:35:26 +0000</pubDate>
		<guid>http://www.kleineikenscheidt.de/stefan/archives/2005/06/default-configuration-with-spring.html#comment-410</guid>
					<description>Hi Sebastian,  i'm not sure which element you mean.  If i search the Spring doco or mailinglist, there are no results for "valueAsString".  Can you explain?</description>
		<content:encoded><![CDATA[<p>Hi Sebastian,  i&#8217;m not sure which element you mean.  If i search the Spring doco or mailinglist, there are no results for &#8220;valueAsString&#8221;.  Can you explain?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: sebastian</title>
		<link>http://www.kleineikenscheidt.de/stefan/archives/2005/06/default-configuration-with-spring.html#comment-409</link>
		<pubDate>Thu, 28 Jul 2005 08:31:50 +0000</pubDate>
		<guid>http://www.kleineikenscheidt.de/stefan/archives/2005/06/default-configuration-with-spring.html#comment-409</guid>
					<description>the braces aren't being displayed (of course)... what i meant was:

the syntax is

&lt;code&gt;

    
      valueAsString
    

&lt;/code&gt;

instead of 


&lt;code&gt;

    
      valueAsString
    

&lt;/code&gt;
</description>
		<content:encoded><![CDATA[<p>the braces aren&#8217;t being displayed (of course)&#8230; what i meant was:</p>
<p>the syntax is</p>
<p><code></p>
<p>      valueAsString</p>
<p></code></p>
<p>instead of </p>
<p><code></p>
<p>      valueAsString</p>
<p></code>
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: sebastian</title>
		<link>http://www.kleineikenscheidt.de/stefan/archives/2005/06/default-configuration-with-spring.html#comment-408</link>
		<pubDate>Thu, 28 Jul 2005 08:28:38 +0000</pubDate>
		<guid>http://www.kleineikenscheidt.de/stefan/archives/2005/06/default-configuration-with-spring.html#comment-408</guid>
					<description>very helpful;
however, the correct syntax of the  element is

:

  valueAsString

:

instead of 


  
    valueAsString
  


or did this change in a newer version of spring? i'm using version 1.2.2;</description>
		<content:encoded><![CDATA[<p>very helpful;<br />
however, the correct syntax of the  element is</p>
<p>:</p>
<p>  valueAsString</p>
<p>:</p>
<p>instead of </p>
<p>    valueAsString</p>
<p>or did this change in a newer version of spring? i&#8217;m using version 1.2.2;
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
