You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Caroline Jen <ji...@yahoo.com> on 2003/10/20 22:55:57 UTC

Keep Them In the Database Or In the Properties File?

I have to prepare many drop down lists for visitors of
the website to make selections.  For example, I have
the 51 states of the United States prepared like
Virginia=VA, ....., etc.  Do I keep the data in a
database or in a properties file?

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Keep Them In the Database Or In the Properties File?

Posted by Martin Gainty <mg...@hotmail.com>.
51 States?
Did California split in 2?
Was PR given Statehood?
What year is this?
-M
----- Original Message ----- 
From: "Caroline Jen" <ji...@yahoo.com>
To: <st...@jakarta.apache.org>
Sent: Monday, October 20, 2003 4:55 PM
Subject: Keep Them In the Database Or In the Properties File?


> I have to prepare many drop down lists for visitors of
> the website to make selections.  For example, I have
> the 51 states of the United States prepared like
> Virginia=VA, ....., etc.  Do I keep the data in a
> database or in a properties file?
> 
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> http://shopping.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: Keep Them In the Database Or In the Properties File?

Posted by Steve Raeburn <sr...@apache.org>.
Either will work. One thing to consider is who will maintain the data.

If developers will create / maintain the lists and the data is essentially
static, then properties files would be a good bet.
If end users maintain the data, then a database and suitable user interface
may be better.

US States are unlikely to ever change so a properties file is a good bet.
Bizarrely, countries tend to change more frequently so you might want to
have those in a database where they could be more easily maintained,
depending on how up to date you need to be.

Steve

> -----Original Message-----
> From: Caroline Jen [mailto:jiapei_jen@yahoo.com]
> Sent: October 20, 2003 1:56 PM
> To: struts-user@jakarta.apache.org
> Subject: Keep Them In the Database Or In the Properties File?
>
>
> I have to prepare many drop down lists for visitors of
> the website to make selections.  For example, I have
> the 51 states of the United States prepared like
> Virginia=VA, ....., etc.  Do I keep the data in a
> database or in a properties file?
>
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> http://shopping.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org