You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Masashi Nakane <na...@mie-com.co.jp> on 2004/04/07 11:37:58 UTC

Resource Bundles and Message Table in DB


    Hi ,all

I'm using Struts 1.1. and a Database is accessed from
both of web application(tomcat5 ,no AP server) on struts and  VB client.
Message DB table is used from both,
which has message id column and message column like "{0} field is required"

Does anyone use Resource bundles and DB Table for messages on Struts?
What is the best practice for using both of them on struts?

What I am thinking is
that normally I get message from DB and when DB access error happens,
I use resource bundle to get message strings.
The resource bundle is made from DB when the tomcat is restarted.

But, I am wondering what is the best way to
get message from DB using Struts functionality as much as possible.

Any comments are appreciated.

Masashi Nakane



  

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


Re: Resource Bundles and Message Table in DB

Posted by James Mitchell <jm...@apache.org>.
> But, I am wondering what is the best way to
> get message from DB using Struts functionality as much as possible.

You can always use DBMessageResources.  Google is your friend!


--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
MSN: jmitchell@apache.org
Yahoo IM:jmitchtx@yahoo.com



----- Original Message -----
From: "Masashi Nakane" <na...@mie-com.co.jp>
To: <us...@struts.apache.org>
Sent: Wednesday, April 07, 2004 5:37 AM
Subject: Resource Bundles and Message Table in DB


>
>
>     Hi ,all
>
> I'm using Struts 1.1. and a Database is accessed from
> both of web application(tomcat5 ,no AP server) on struts and  VB client.
> Message DB table is used from both,
> which has message id column and message column like "{0} field is
required"
>
> Does anyone use Resource bundles and DB Table for messages on Struts?
> What is the best practice for using both of them on struts?
>
> What I am thinking is
> that normally I get message from DB and when DB access error happens,
> I use resource bundle to get message strings.
> The resource bundle is made from DB when the tomcat is restarted.
>
> But, I am wondering what is the best way to
> get message from DB using Struts functionality as much as possible.
>
> Any comments are appreciated.
>
> Masashi Nakane
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>



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