Chris, Attached is a DAO I wrote you can modify to your circumstances. Don't mind the subclassing (it's just my abstract class); replace it with "implements Serializable." It creates a java.util.Properties object (key-value pairs) based on a database table named CFG_SRVR_PRPTY with a field (column) called PROPERTY which contains a \n-delimited (newline, not literal) string of key=value pairs (I'm using PL/SQL Developer and Oracle 9i).
By calling one of the constructors on this class with an Action class and putting the object into some scope, you can access key=value (i.e., JavaBean states) saved to a database from your JSPs (or anywhere else). I did this to stop the proliferation of individual properties files within my development group. Mark -----Original Message----- From: Randall, Christopher J,,DMDCWEST [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 02, 2002 2:51 PM To: 'Struts Users Mailing List' Subject: Newbie question Total newbie question here: where is a good example of a database-access model bean? I have been looking all day on the web site for good bean examples. Thanks, Chris -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
ServerProperties.java
Description: Binary data
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>