You could extend the ErrorsTag.doStartTag() to use a databases.  If you
still wanted to use the properties file, just prefix properties for the
database with 'jdbc.X' where 'X' is the property in the database.

Inside your ErrorsTag.doStartTag() check if 'jdbc' starts off the property.
If so, do a database lookup, else use the property file.

James Hicks
Systems Administrator
BerryDirect - Nacogdoches, TX
[EMAIL PROTECTED]
voice: 936-462-4655
pager: 936-462-2062


-----Original Message-----
From: Muthu Kannappan [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, May 23, 2001 5:15 PM
To: [EMAIL PROTECTED]
Subject: <html:errors/>


Hi
I have been trying to use struts and wanted to use the <html:errors/> tag.
I wanted to the error messages to be read from a database instead of the 
ActionResources properties file. Could you let me know 
what exactly I am suppose to do to achive that. 
I wanted to changed the code at the place where it was looking for the
properties files and make it look into the database.
Could any one suggest me how to do that or has anybody done that already.

Thanks
Kanna


____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1

Reply via email to