Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Subject: Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Subject: Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
Properties file or a Constants Class

Properties file or a Constants Class

2005-01-12       - By Jones, Douglas 1

 Back
Reply:     1     2     3     4     5     6     7     8     9     10     >>  

The way my group does things is to have a key value pair properties
file.  We have a class that loads this file and puts the keys and values
into a hash table for easy reference later.  Each servlet that needs
this file is responsible for loading the file itself.  The main
advantage to this is being able to change values without having to
restart the server.



--
Doug Jones
Co-Op Web Developer
douglas.1.jones@(protected)

-- --Original Message-- --
From: A mailing list for Java(tm) 2 Platform, Enterprise Edition
[mailto:J2EE-INTEREST@(protected)]On Behalf Of KR Kumar
Sent: Wednesday, January 12, 2005 3:13 AM
To: J2EE-INTEREST@(protected)
Subject: Properties file or a Constants Class



Hi guys,



Is it better to use a Constants java class and declare all the constants
or use a key value pair properties file backed by a Properties class?



Thanx & Regards
KR Kumar







DISCLAIMER:
This message contains privileged and confidential information and is
intended only for the individual named.If you are not the intended
recipient you should not disseminate,distribute,store,print, copy or
deliver this message.Please notify the sender immediately by e-mail if
you have received this e-mail by mistake and delete this e-mail from
your system.E-mail transmission cannot be guaranteed to be secure or
error-free as information could be
intercepted,corrupted,lost,destroyed,arrive late or incomplete or
contain viruses.The sender therefore does not accept liability for any
errors or omissions in the contents of this message which arise as a
result of e-mail transmission. If verification is required please
request a hard-copy version.
========================================================================
=== To unsubscribe, send email to listserv@(protected) and include in
the body of the message "signoff J2EE-INTEREST". For general help, send
email to listserv@(protected) and include in the body of the message
"help".





===========================================================================
To unsubscribe, send email to listserv@(protected) and include in the body
of the message "signoff J2EE-INTEREST".  For general help, send email to
listserv@(protected) and include in the body of the message "help".


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word"><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">


<META content="MSHTML 6.00.2800.1458" name=GENERATOR>
<STYLE>@(protected) Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
       FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
       FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
       FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
       COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
       COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
       COLOR: #606420; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
       COLOR: #606420; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
       COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal-compose
}
DIV.Section1 {
       page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=#606420 link=blue>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=609481314-12012005>The
way my group does things is to have a key value pair properties file.&nbsp; We
have a class that loads this file and puts the keys and values into a hash table
for easy reference later.&nbsp; Each servlet that needs this file is responsible
for loading the file itself.&nbsp; The main advantage to this is being able to
change values without having to restart the server.</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV><BR>
<P><B><FONT face="Futura Md BT" size=2>--</FONT></B> <BR><B><FONT
face="Futura Md BT" size=2>Doug Jones</FONT></B> <BR><B><FONT
face="Futura Md BT" size=2>Co-Op Web Developer</FONT></B> <BR><B><FONT
face="Futura Md BT" size=2><A
href="mailto:douglas.1.jones@(protected)">douglas.1.jones@(protected)</A></FONT></B><
/P>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
 <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
 size=2>-- --Original Message-- --<BR><B>From:</B> A mailing list for Java(tm)
 2 Platform, Enterprise Edition [mailto:J2EE-INTEREST@(protected)]<B>On Behalf
 Of </B>KR Kumar<BR><B>Sent:</B> Wednesday, January 12, 2005 3:13
 AM<BR><B>To:</B> J2EE-INTEREST@(protected)<BR><B>Subject:</B> Properties file
 or a Constants Class<BR><BR></FONT></DIV>
 <DIV class=Section1>
 <P class=MsoNormal><FONT face=Arial size=2><SPAN
 style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hi
 guys,<o:p></o:p></SPAN></FONT></P>
 <P class=MsoNormal dir=rtl
 style="DIRECTION: rtl; unicode-bidi: embed; TEXT-ALIGN: right"><FONT
 face=Arial size=2><SPAN dir=ltr
 style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT><
/P>
 <P class=MsoNormal dir=rtl
 style="DIRECTION: rtl; unicode-bidi: embed; TEXT-ALIGN: left"
 align=right><FONT face=Arial size=2><SPAN dir=ltr
 style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Is it better to use a Constants
 java class and declare all the constants or use a key value pair properties
 file backed by a Properties class?<o:p></o:p></SPAN></FONT></P>
 <P class=MsoNormal><FONT face=Arial size=2><SPAN
 style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT><
/P>
 <P class=MsoNormal><EM><B><I><FONT face=Arial size=2><SPAN
 style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Arial">Thanx &amp;
 Regards</SPAN></FONT></I></B></EM><BR><EM><B><I><FONT face=Arial size=2><SPAN
 style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Arial">KR
 Kumar</SPAN></FONT></I></B></EM><BR><BR><o:p></o:p></P>
 <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
 style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P></DIV>
 <P></P>
 <P>DISCLAIMER:<BR>This message contains privileged and confidential
 information and is intended only for the individual named.If you are not the
 intended recipient you should not disseminate,distribute,store,print, copy or
 deliver this message.Please notify the sender immediately by e-mail if you
 have received this e-mail by mistake and delete this e-mail from your
 system.E-mail transmission cannot be guaranteed to be secure or error-free as
 information could be intercepted,corrupted,lost,destroyed,arrive late or
 incomplete or contain viruses.The sender therefore does not accept liability
 for any errors or omissions in the contents of this message which arise as a
 result of e-mail transmission. If verification is required please request a
 hard-copy version.
 =========================================================================== To
 unsubscribe, send email to listserv@(protected) and include in the body of
 the message "signoff J2EE-INTEREST". For general help, send email to
 listserv@(protected) and include in the body of the message "help".
 <P></P></BLOCKQUOTE></BODY></HTML>
===========================================================================
To unsubscribe, send email to listserv@(protected) and include in the body
of the message "signoff J2EE-INTEREST".  For general help, send email to
listserv@(protected) and include in the body of the message "help".
<p>

©2008 junlu.com - Jax Systems, LLC, U.S.A.