Re: User defined error messages

2003-12-03 Thread Manish Singla
You can  connect to database by extending "PropertyMessageResources" of 
struts.

PropertyMessageResources has "loadLocale" method wherein struts use 
"getResourceAsStream(proprtyFileName)"... Thus, instead of that you have 
to connect to database to load it.

Manish Singla

>and we don't have to rely on them backing their disk files up.
Property file can also be stored at remote location like database. But, 
you have to again extend PropertyMessageResources..





Greg Dunn wrote:
Sorry I wasn't clear.  I've got my ApplicationResources.properties file set
up and in use for most messages.  However, it's packed into a .war file
inside an .ear file for deployment, so I can't let them access it directly
and edit the messages in it to their taste.  What I'm looking for is another
source to collect a message bundle from, preferably the database.  Though I
could use another .properties file they CAN access I would prefer to go the
database route because they'll be editing it through their web based admin
pages and my life will be easier if I can use DAO's I already have, and we
don't have to rely on them backing their disk files up.
Greg

-Original Message-
From: Witt, Mike (OH35) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 03, 2003 10:53 AM
To: Struts Users Mailing List
Subject: RE: User defined error messages
I'm not sure if you are asking more than what this answer implies but ... I
use Properties stored in a properties file for my error messages.
Mike

-Original Message-
From: Greg Dunn [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 03, 2003 11:40 AM
To: Struts Users Mailing List
Subject: User defined error messages
My PTB want to let our clients edit the content of certain error messages
after deployment.Any suggestions on how to accomplish this?  Thanks.
Greg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Thanks
Manish Singla
x73166
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: User defined error messages

2003-12-03 Thread Susan Bradeen

Greg,
Have you looked into James Mitchell's OJBMessageResources?

http://nagoya.apache.org/wiki/apachewiki.cgi?StrutsMessageResourcesFromDatabase.


I haven't used it, but if I remember correctly it is message resources in a
database.

HTH,
Susan

On 12/03/2003 12:12:09 PM "Greg Dunn" wrote:

> Sorry I wasn't clear.  I've got my ApplicationResources.properties file
set
> up and in use for most messages.  However, it's packed into a .war file
> inside an .ear file for deployment, so I can't let them access it
directly
> and edit the messages in it to their taste.  What I'm looking for is
another
> source to collect a message bundle from, preferably the database.  Though
I
> could use another .properties file they CAN access I would prefer to go
the
> database route because they'll be editing it through their web based
admin
> pages and my life will be easier if I can use DAO's I already have, and
we
> don't have to rely on them backing their disk files up.
>
> Greg
>
> -Original Message-
> From: Witt, Mike (OH35) [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 03, 2003 10:53 AM
> To: Struts Users Mailing List
> Subject: RE: User defined error messages
>
>
> I'm not sure if you are asking more than what this answer implies but ...
I
> use Properties stored in a properties file for my error messages.
>
> Mike
>
> -Original Message-----
> From: Greg Dunn [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 03, 2003 11:40 AM
> To: Struts Users Mailing List
> Subject: User defined error messages
>
>
> My PTB want to let our clients edit the content of certain error messages
> after deployment.Any suggestions on how to accomplish this?  Thanks.
>
>
> Greg
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: User defined error messages

2003-12-03 Thread Greg Dunn
Sorry I wasn't clear.  I've got my ApplicationResources.properties file set
up and in use for most messages.  However, it's packed into a .war file
inside an .ear file for deployment, so I can't let them access it directly
and edit the messages in it to their taste.  What I'm looking for is another
source to collect a message bundle from, preferably the database.  Though I
could use another .properties file they CAN access I would prefer to go the
database route because they'll be editing it through their web based admin
pages and my life will be easier if I can use DAO's I already have, and we
don't have to rely on them backing their disk files up.

Greg

-Original Message-
From: Witt, Mike (OH35) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 03, 2003 10:53 AM
To: Struts Users Mailing List
Subject: RE: User defined error messages


I'm not sure if you are asking more than what this answer implies but ... I
use Properties stored in a properties file for my error messages.

Mike

-Original Message-
From: Greg Dunn [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 03, 2003 11:40 AM
To: Struts Users Mailing List
Subject: User defined error messages


My PTB want to let our clients edit the content of certain error messages
after deployment.Any suggestions on how to accomplish this?  Thanks.


Greg


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: User defined error messages

2003-12-03 Thread Witt, Mike (OH35)
I'm not sure if you are asking more than what this answer implies but ... I
use Properties stored in a properties file for my error messages.

Mike

-Original Message-
From: Greg Dunn [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 03, 2003 11:40 AM
To: Struts Users Mailing List
Subject: User defined error messages


My PTB want to let our clients edit the content of certain error messages
after deployment.Any suggestions on how to accomplish this?  Thanks.


Greg


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



User defined error messages

2003-12-03 Thread Greg Dunn
My PTB want to let our clients edit the content of certain error messages
after deployment.Any suggestions on how to accomplish this?  Thanks.


Greg


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]