What's the right place for application configuration information?

Tim Reilly <[email protected]> Thu, 5 Dec 2002 10:08:09 -0500
Newsgroups gmane.comp.web.mvc.devel,gmane.comp.java.mvc.devel
Message-ID <65718007A63C1147B29C2A9E96798DADA2B2A1@EXCHMAIL>
------_=_NextPart_001_01C29C70.1F927F80
Content-Type: text/plain;
	charset="iso-8859-1"

Hi there, 

I'm trying to find out what the right place for your own configuration
information is.  I'm talking about the kind of stuff you used to just put
into a .properties file.  I'm new to Struts, and I'm not sure if there's a
better way to do it now.

Does this kind of configuration information belong in:

1) A ServletConfig [seems wrong, since with Struts I don't have my own
servlet].
2) Your own .properties file
3) A separate MessageResource file from the one used for your messages?
or
4) Some other place / method of access I don't yet know about.

I can't seem to find an answer to this in the struts-mailing list archives
or on the web.

Thanks for your help,

-Tim

------_=_NextPart_001_01C29C70.1F927F80
Content-Type: text/html; charset=US-ASCII
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>What's the right place for application configuration information?</TITLE>
</HEAD>
<BODY>



<P><FONT SIZE=2 FACE="Arial">Hi there, </FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I'm trying to find out what the right place for your own configuration information is.&nbsp; I'm talking about the kind of stuff you used to just put into a .properties file.&nbsp; I'm new to Struts, and I'm not sure if there's a better way to do it now.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Does this kind of configuration information belong in:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">1) A ServletConfig [seems wrong, since with Struts I don't have my own servlet].</FONT>
<BR><FONT SIZE=2 FACE="Arial">2) Your own .properties file</FONT>
<BR><FONT SIZE=2 FACE="Arial">3) A separate MessageResource file from the one used for your messages?</FONT>
<BR><FONT SIZE=2 FACE="Arial">or</FONT>
<BR><FONT SIZE=2 FACE="Arial">4) Some other place / method of access I don't yet know about.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I can't seem to find an answer to this in the struts-mailing list archives or on the web.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Thanks for your help,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">-Tim</FONT>
</P>


<br>



<br>
<tt>
To unsubscribe from this group, send an email to:<BR>
[email protected]<BR>
<BR>
</tt>
<br>

<br>
<tt>Your use of Yahoo! Groups is subject to the <a href="http://docs.yahoo.com/info/terms/">Yahoo! Terms of Service</a>.</tt>
</br>

</BODY>
</HTML>
------_=_NextPart_001_01C29C70.1F927F80--