Re: Using ApplicationResources.properties problem

2004-03-05 Thread Billy Ng
Vincent, I found out what's going on.  I have set up the Chinese(Taiwan)
(zh_TW) for my input method in Windows.  The Java was too smart to pick it
up as my default locale.

Billy Ng

This mailbox protected from junk email by Matador
from MailFrontier, Inc. http://info.mailfrontier.com

- Original Message - 
From: "Vincent Lin" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; "Billy Ng"
<[EMAIL PROTECTED]>
Sent: Thursday, March 04, 2004 10:06 PM
Subject: Re: Using ApplicationResources.properties problem


> Try this in your action class:
>
> HttpSession session = request.getSession();
> session.setAttribute(org.apache.struts.Globals.LOCALE_KEY,
> java.util.Locale.ENGLISH);
>
> It will set the default locale of struts to ENGLISH.
> But I am not sure if struts will take the missing
> message from ApplicationResources.properties or
> ApplicationResources_en_US.properties.
>
> I am a little confused too. Please let me know if it
> works.
>
> Regards,
> Vincent
>
>  --- Billy Ng <[EMAIL PROTECTED]> :> Sorry, I
> misunderstood your email.  Let me try to
> > set the default locale
> > with LOCALE_KEY in the session.  It will be great if
> > you have any example
> > that oyu can show me, thanks!
> >
> > Billy Ng
> > 
> > This mailbox protected from junk email by Matador
> > from MailFrontier, Inc. http://info.mailfrontier.com
> >
> > - Original Message - 
> > From: "Vincent Lin" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List"
> > <[EMAIL PROTECTED]>; "Billy Ng"
> > <[EMAIL PROTECTED]>
> > Sent: Thursday, March 04, 2004 7:34 PM
> > Subject: Re: Using ApplicationResources.properties
> > problem
> >
> >
> > > I think the default locale is set in session scope
> > > with the key org.apache.struts.Globals.LOCALE_KEY.
> > > In my experience, if you don't set default locale,
> > > struts will take the locale setting of the client
> > > browser. Are you using zh_TW as the default locale
> > in
> > > your browser?
> > >
> > > Regards,
> > > Vincent
> > >
> > >  --- Billy Ng <[EMAIL PROTECTED]> > I am going
> > to
> > > localize the product.  The
> > > > getResources().getMessage() method just works
> > fine
> > > > with the following properties files.
> > > >
> > > > ApplicationResources.properties
> > > > ApplicationResources_en_US.properties
> > > > ApplicationResources_fr_FR.properties
> > > >
> > > > However, if I add the
> > > > ApplicationResources_zh_TW.properties, the
> > > > getResources().getMessage() will pick up the
> > missing
> > > > key-value pairs from
> > > > ApplicationResources_zh_TW.properties instead of
> > > > ApplicationResources.properties. Why?  I thought
> > > > ApplicationResources.properties was the defualt.
> > > >
> > > > ApplicationResources.properties
> > > > ApplicationResources_en_US.properties
> > > > ApplicationResources_fr_FR.properties
> > > > ApplicationResources_zh_TW.properties
> > > >
> > > >
> > > >
> > 
> > > > This mailbox protected from junk email by
> > Matador
> > > > from MailFrontier, Inc.
> > http://info.mailfrontier.com
> > > >
> > >
> > >
> > >
> > >
> >
> -
> > > 每天都 Yahoo!奇摩
> > > 海的顏色、風的氣息、愛你的溫度,盡在信紙底圖
> > >
> >
> http://tw.promo.yahoo.com/mail_premium/stationery.html
> > >
> > >
> >
> -
> > > 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]
> >
>
> -
> 每天都 Yahoo!奇摩
> 海的顏色、風的氣息、愛你的溫度,盡在信紙底圖
> http://tw.promo.yahoo.com/mail_premium/stationery.html
>
> -
> 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: Using ApplicationResources.properties problem

2004-03-04 Thread Vincent Lin
Try this in your action class:

HttpSession session = request.getSession();
session.setAttribute(org.apache.struts.Globals.LOCALE_KEY,
java.util.Locale.ENGLISH);

It will set the default locale of struts to ENGLISH.
But I am not sure if struts will take the missing
message from ApplicationResources.properties or
ApplicationResources_en_US.properties.

I am a little confused too. Please let me know if it
works.

Regards,
Vincent

 --- Billy Ng <[EMAIL PROTECTED]> :> Sorry, I
misunderstood your email.  Let me try to
> set the default locale
> with LOCALE_KEY in the session.  It will be great if
> you have any example
> that oyu can show me, thanks!
> 
> Billy Ng
> 
> This mailbox protected from junk email by Matador
> from MailFrontier, Inc. http://info.mailfrontier.com
> 
> - Original Message - 
> From: "Vincent Lin" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List"
> <[EMAIL PROTECTED]>; "Billy Ng"
> <[EMAIL PROTECTED]>
> Sent: Thursday, March 04, 2004 7:34 PM
> Subject: Re: Using ApplicationResources.properties
> problem
> 
> 
> > I think the default locale is set in session scope
> > with the key org.apache.struts.Globals.LOCALE_KEY.
> > In my experience, if you don't set default locale,
> > struts will take the locale setting of the client
> > browser. Are you using zh_TW as the default locale
> in
> > your browser?
> >
> > Regards,
> > Vincent
> >
> >  --- Billy Ng <[EMAIL PROTECTED]> > I am going
> to
> > localize the product.  The
> > > getResources().getMessage() method just works
> fine
> > > with the following properties files.
> > >
> > > ApplicationResources.properties
> > > ApplicationResources_en_US.properties
> > > ApplicationResources_fr_FR.properties
> > >
> > > However, if I add the
> > > ApplicationResources_zh_TW.properties, the
> > > getResources().getMessage() will pick up the
> missing
> > > key-value pairs from
> > > ApplicationResources_zh_TW.properties instead of
> > > ApplicationResources.properties. Why?  I thought
> > > ApplicationResources.properties was the defualt.
> > >
> > > ApplicationResources.properties
> > > ApplicationResources_en_US.properties
> > > ApplicationResources_fr_FR.properties
> > > ApplicationResources_zh_TW.properties
> > >
> > >
> > >
> 
> > > This mailbox protected from junk email by
> Matador
> > > from MailFrontier, Inc.
> http://info.mailfrontier.com
> > >
> >
> >
> >
> >
>
-
> > 每天都 Yahoo!奇摩
> > 海的顏色、風的氣息、愛你的溫度,盡在信紙底圖
> >
>
http://tw.promo.yahoo.com/mail_premium/stationery.html
> >
> >
>
-
> > 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]
>  

-
每天都 Yahoo!奇摩
海的顏色、風的氣息、愛你的溫度,盡在信紙底圖
http://tw.promo.yahoo.com/mail_premium/stationery.html

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



Re: Using ApplicationResources.properties problem

2004-03-04 Thread Billy Ng
Sorry, I misunderstood your email.  Let me try to set the default locale
with LOCALE_KEY in the session.  It will be great if you have any example
that oyu can show me, thanks!

Billy Ng

This mailbox protected from junk email by Matador
from MailFrontier, Inc. http://info.mailfrontier.com

- Original Message - 
From: "Vincent Lin" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; "Billy Ng"
<[EMAIL PROTECTED]>
Sent: Thursday, March 04, 2004 7:34 PM
Subject: Re: Using ApplicationResources.properties problem


> I think the default locale is set in session scope
> with the key org.apache.struts.Globals.LOCALE_KEY.
> In my experience, if you don't set default locale,
> struts will take the locale setting of the client
> browser. Are you using zh_TW as the default locale in
> your browser?
>
> Regards,
> Vincent
>
>  --- Billy Ng <[EMAIL PROTECTED]> > I am going to
> localize the product.  The
> > getResources().getMessage() method just works fine
> > with the following properties files.
> >
> > ApplicationResources.properties
> > ApplicationResources_en_US.properties
> > ApplicationResources_fr_FR.properties
> >
> > However, if I add the
> > ApplicationResources_zh_TW.properties, the
> > getResources().getMessage() will pick up the missing
> > key-value pairs from
> > ApplicationResources_zh_TW.properties instead of
> > ApplicationResources.properties. Why?  I thought
> > ApplicationResources.properties was the defualt.
> >
> > ApplicationResources.properties
> > ApplicationResources_en_US.properties
> > ApplicationResources_fr_FR.properties
> > ApplicationResources_zh_TW.properties
> >
> >
> > 
> > This mailbox protected from junk email by Matador
> > from MailFrontier, Inc. http://info.mailfrontier.com
> >
>
>
>
> -
> 每天都 Yahoo!奇摩
> 海的顏色、風的氣息、愛你的溫度,盡在信紙底圖
> http://tw.promo.yahoo.com/mail_premium/stationery.html
>
> -
> 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: Using ApplicationResources.properties problem

2004-03-04 Thread Vincent Lin
I think the default locale is set in session scope
with the key org.apache.struts.Globals.LOCALE_KEY.
In my experience, if you don't set default locale,
struts will take the locale setting of the client
browser. Are you using zh_TW as the default locale in
your browser?

Regards,
Vincent

 --- Billy Ng <[EMAIL PROTECTED]> > I am going to
localize the product.  The
> getResources().getMessage() method just works fine
> with the following properties files.
> 
> ApplicationResources.properties
> ApplicationResources_en_US.properties
> ApplicationResources_fr_FR.properties
> 
> However, if I add the
> ApplicationResources_zh_TW.properties, the
> getResources().getMessage() will pick up the missing
> key-value pairs from
> ApplicationResources_zh_TW.properties instead of
> ApplicationResources.properties. Why?  I thought
> ApplicationResources.properties was the defualt.
> 
> ApplicationResources.properties
> ApplicationResources_en_US.properties
> ApplicationResources_fr_FR.properties
> ApplicationResources_zh_TW.properties
> 
> 
> 
> This mailbox protected from junk email by Matador
> from MailFrontier, Inc. http://info.mailfrontier.com
>  



-
每天都 Yahoo!奇摩
海的顏色、風的氣息、愛你的溫度,盡在信紙底圖
http://tw.promo.yahoo.com/mail_premium/stationery.html

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



Using ApplicationResources.properties problem

2004-03-04 Thread Billy Ng
I am going to localize the product.  The getResources().getMessage() method just works 
fine with the following properties files.

ApplicationResources.properties
ApplicationResources_en_US.properties
ApplicationResources_fr_FR.properties

However, if I add the ApplicationResources_zh_TW.properties, the 
getResources().getMessage() will pick up the missing key-value pairs from 
ApplicationResources_zh_TW.properties instead of ApplicationResources.properties. Why? 
 I thought ApplicationResources.properties was the defualt.

ApplicationResources.properties
ApplicationResources_en_US.properties
ApplicationResources_fr_FR.properties
ApplicationResources_zh_TW.properties



This mailbox protected from junk email by Matador
from MailFrontier, Inc. http://info.mailfrontier.com


AW: spontaneous disappering ApplicationResources.properties

2004-02-23 Thread Andreas Solarik
Ages ago, while using JBuilder5, we found a similar problem. Any editing of
text files belonging to the war (web.xml, app.properties...) was lost if it
was performed while the integrated tomcat was running (copied an old version
of the file from some cache over the "original" files when it was
terminated).

Maybe this helps!

-Ursprungliche Nachricht-
Von: Mark Lowe [mailto:[EMAIL PROTECTED]
Gesendet: Sonntag, 22. Februar 2004 11:48
An: Struts Users Mailing List
Betreff: Re: spontaneous disappering ApplicationResources.properties


Ah..

I remember giving eclipse a go, and it ate my homework also. My guess
is that it get you producing at such supersonic rates that the files
just ant keep up.

:o) sorry I've nothing useful to add.


On 21 Feb 2004, at 20:45, [EMAIL PROTECTED] wrote:

> Hi list,
>
> I have a weird problem with all of my struts applications.
>
> the file ApplicationResources.properties, usually in WEB-
> INF/classes, is disappearing spontaneously every now and then.
> this happens with all of my projects. I tried and set the attributes of
> the file on read-only, but that does not help.
> Though i learned to live with it by having backups available, it is
> quite irritating.
>
> Has anyone else experienced this?  Is it some weird setting or
> what?
>
> I'm using Eclipse 2.1.0 on a win2000 platform.
>
> Thanks,
> Rinke
>
> -
> 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: spontaneous disappering ApplicationResources.properties

2004-02-22 Thread Mark Lowe
Ah..

I remember giving eclipse a go, and it ate my homework also. My guess 
is that it get you producing at such supersonic rates that the files 
just ant keep up.

:o) sorry I've nothing useful to add.

On 21 Feb 2004, at 20:45, [EMAIL PROTECTED] wrote:

Hi list,

I have a weird problem with all of my struts applications.

the file ApplicationResources.properties, usually in WEB-
INF/classes, is disappearing spontaneously every now and then.
this happens with all of my projects. I tried and set the attributes of
the file on read-only, but that does not help.
Though i learned to live with it by having backups available, it is
quite irritating.
Has anyone else experienced this?  Is it some weird setting or
what?
I'm using Eclipse 2.1.0 on a win2000 platform.

Thanks,
Rinke
-
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: spontaneous disappering ApplicationResources.properties

2004-02-21 Thread James Mitchell
This is cause by Eclipse rebuilding your project.

You need to put your "source" files (that means *.properties as well as
*.java) in your source folders.  Any time you make changes, Eclipse will
copy them over to the classes directory for you.



--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
MSN: [EMAIL PROTECTED]




> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Saturday, February 21, 2004 2:45 PM
> To: [EMAIL PROTECTED]
> Subject: spontaneous disappering ApplicationResources.properties
>
>
> Hi list,
>
> I have a weird problem with all of my struts applications.
>
> the file ApplicationResources.properties, usually in WEB-
> INF/classes, is disappearing spontaneously every now and then.
> this happens with all of my projects. I tried and set the attributes of
> the file on read-only, but that does not help.
> Though i learned to live with it by having backups available, it is
> quite irritating.
>
> Has anyone else experienced this?  Is it some weird setting or
> what?
>
> I'm using Eclipse 2.1.0 on a win2000 platform.
>
> Thanks,
> Rinke
>
> -
> 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]



spontaneous disappering ApplicationResources.properties

2004-02-21 Thread [EMAIL PROTECTED]
Hi list, 

I have a weird problem with all of my struts applications. 

the file ApplicationResources.properties, usually in WEB-
INF/classes, is disappearing spontaneously every now and then. 
this happens with all of my projects. I tried and set the attributes of 
the file on read-only, but that does not help. 
Though i learned to live with it by having backups available, it is 
quite irritating. 

Has anyone else experienced this?  Is it some weird setting or 
what?

I'm using Eclipse 2.1.0 on a win2000 platform.

Thanks, 
Rinke

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



Re: Access Applicationresources.properties from Action

2004-01-16 Thread Eric C
Thanks,

well my app doesn't know Globals.MESSAGES_KEY.
So I did directly :

MessageResources resources=getResources(request);
String res = resources.getMessage("errors.doublon");

- Original Message -
From: "Otto, Frank" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, January 16, 2004 12:45 PM
Subject: AW: Access Applicationresources.properties from Action


Hi Eric,

use:

MessageResources resources =

(MessageResources)request.getAttribute(Globals.MESSAGES_KEY);
String msg = resources.getMessage(locale, "key");


Regards,

Frank

-Ursprüngliche Nachricht-
Von: Eric C [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 16. Januar 2004 12:42
An: Struts Users Mailing List
Betreff: Access Applicationresources.properties from Action


Hi all,

i'd like to access my properties file from the Action. My purpose is deliver
an error message to my result page. Any sample code showing the use of the
MessageResources object ?

Regards,
ERic


-
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]



AW: Access Applicationresources.properties from Action

2004-01-16 Thread Otto, Frank
No, getMessage(locale, "key") searchs for the italian file first. If it don't find it, 
it will take the default file.

Regards,

Frank



-Ursprüngliche Nachricht-
Von: Paul McCulloch [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 16. Januar 2004 13:02
An: 'Struts Users Mailing List'
Betreff: RE: Access Applicationresources.properties from Action


Is there an easy way to get the 'closest match' on terms of locales in the
request?

For example, my browser has it's request languages set to
Italian;French;English. My application's default properties file is in
English. There is a French properties file but not an Italian one.

So, when I ask for a value I want to get the French one. But getMessage()
will always return a value if the key exists in the default locale, so there
seems to be no way to try Italian first, then French, then English.

Any ideas?

Paul

> -Original Message-
> From: Otto, Frank [mailto:[EMAIL PROTECTED]
> Sent: 16 January 2004 11:46
> To: 'Struts Users Mailing List'
> Subject: AW: Access Applicationresources.properties from Action
> 
> 
> Hi Eric,
> 
> use:
> 
> MessageResources resources = 
>
> (MessageResources)request.getAttribute(Globals.MESSAGES_KEY);
> String msg = resources.getMessage(locale, "key");
> 
> 
> Regards,
> 
> Frank
> 
> -Ursprüngliche Nachricht-
> Von: Eric C [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 16. Januar 2004 12:42
> An: Struts Users Mailing List
> Betreff: Access Applicationresources.properties from Action
> 
> 
> Hi all,
> 
> i'd like to access my properties file from the Action. My 
> purpose is deliver
> an error message to my result page. Any sample code showing 
> the use of the
> MessageResources object ?
> 
> Regards,
> ERic
> 
> 
> -
> 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]
> 


**
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you are not 
the addressee indicated in this message (or responsible for delivery of the message to 
such person), you may not copy or deliver this message to anyone. In such case, you 
should destroy this message, and notify us immediately. If you or your employer does 
not consent to Internet email messages of this kind, please advise us immediately. 
Opinions, conclusions and other information expressed in this message are not given or 
endorsed by my Company or employer unless otherwise indicated by an authorised 
representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted 
via electronic mail attachments we cannot guarantee that attachments do not contain 
computer virus code.  You are therefore strongly advised to undertake anti virus 
checks prior to accessing the attachment to this electronic mail.  Axios Systems Ltd 
grants no warranties regarding performance use or quality of any attachment and 
undertakes no liability for loss or damage howsoever caused.


-
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: Access Applicationresources.properties from Action

2004-01-16 Thread Paul McCulloch
Is there an easy way to get the 'closest match' on terms of locales in the
request?

For example, my browser has it's request languages set to
Italian;French;English. My application's default properties file is in
English. There is a French properties file but not an Italian one.

So, when I ask for a value I want to get the French one. But getMessage()
will always return a value if the key exists in the default locale, so there
seems to be no way to try Italian first, then French, then English.

Any ideas?

Paul

> -Original Message-
> From: Otto, Frank [mailto:[EMAIL PROTECTED]
> Sent: 16 January 2004 11:46
> To: 'Struts Users Mailing List'
> Subject: AW: Access Applicationresources.properties from Action
> 
> 
> Hi Eric,
> 
> use:
> 
> MessageResources resources = 
>
> (MessageResources)request.getAttribute(Globals.MESSAGES_KEY);
> String msg = resources.getMessage(locale, "key");
> 
> 
> Regards,
> 
> Frank
> 
> -Ursprüngliche Nachricht-
> Von: Eric C [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 16. Januar 2004 12:42
> An: Struts Users Mailing List
> Betreff: Access Applicationresources.properties from Action
> 
> 
> Hi all,
> 
> i'd like to access my properties file from the Action. My 
> purpose is deliver
> an error message to my result page. Any sample code showing 
> the use of the
> MessageResources object ?
> 
> Regards,
> ERic
> 
> 
> -
> 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]
> 


**
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you are not 
the addressee indicated in this message (or responsible for delivery of the message to 
such person), you may not copy or deliver this message to anyone. In such case, you 
should destroy this message, and notify us immediately. If you or your employer does 
not consent to Internet email messages of this kind, please advise us immediately. 
Opinions, conclusions and other information expressed in this message are not given or 
endorsed by my Company or employer unless otherwise indicated by an authorised 
representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted 
via electronic mail attachments we cannot guarantee that attachments do not contain 
computer virus code.  You are therefore strongly advised to undertake anti virus 
checks prior to accessing the attachment to this electronic mail.  Axios Systems Ltd 
grants no warranties regarding performance use or quality of any attachment and 
undertakes no liability for loss or damage howsoever caused.


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



RE: Access Applicationresources.properties from Action

2004-01-16 Thread Matthias Wessendorf
hi, 
use getResources(request);


or if more then 1

getResources(request, "keyOfResource");


this returns an MessageResource-Object

then you can read it.

greeting


-Original Message-
From: Eric C [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 16, 2004 12:42 PM
To: Struts Users Mailing List
Subject: Access Applicationresources.properties from Action


Hi all,

i'd like to access my properties file from the Action. My purpose is
deliver an error message to my result page. Any sample code showing the
use of the MessageResources object ?

Regards,
ERic


-
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]



AW: Access Applicationresources.properties from Action

2004-01-16 Thread Otto, Frank
Hi Eric,

use:

MessageResources resources = 
   (MessageResources)request.getAttribute(Globals.MESSAGES_KEY);
String msg = resources.getMessage(locale, "key");


Regards,

Frank

-Ursprüngliche Nachricht-
Von: Eric C [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 16. Januar 2004 12:42
An: Struts Users Mailing List
Betreff: Access Applicationresources.properties from Action


Hi all,

i'd like to access my properties file from the Action. My purpose is deliver
an error message to my result page. Any sample code showing the use of the
MessageResources object ?

Regards,
ERic


-
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]



Access Applicationresources.properties from Action

2004-01-16 Thread Eric C
Hi all,

i'd like to access my properties file from the Action. My purpose is deliver
an error message to my result page. Any sample code showing the use of the
MessageResources object ?

Regards,
ERic


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



Re: ApplicationResources.properties

2003-12-21 Thread Martin Gainty
you made sure your ApplicationResources.properties is in the
%TOMCAT_HOME%\webapps\DeployedName\WEB-INF\classes folder?
and you checked the app was deployed http://:8080/manager/list  ?
if not deploy the DeployedName as
http://:8080/manager/install?path=/DeployedName&war=DeployedName
Hth,
Martin

- Original Message - 
From: "Mark Nichols" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, December 20, 2003 5:38 PM
Subject: ApplicationResources.properties


> Good Afternoon,
>
> My application works fine until I create a WAR file out of it and
> deploy it to Tomat. Once there I get a "Missing message key for
> "index.title" error. This error doesn't occur when running the
> development copy of the application. I have made sure that the
> ApplicationResources.properties file is the correct place in the WAR
> file.
>
> I'm sure that I have overlooked something obvious, and I would be
> grateful for someone pointing it out.
>
> Thanks
>
> Mark
>
> --
> The Difference Between Smart and Stupid is the Depth of the Hole You
> Make When You Screw Up.
>
>
> -
> 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: ApplicationResources.properties

2003-12-20 Thread Saul Q Yuan
Is the property file in the right place and in the class path after your War
file expanded by Tomcat? If not, the War file was not deployed correctly.

Saul

- Original Message - 
From: "Mark Nichols" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, December 20, 2003 5:38 PM
Subject: ApplicationResources.properties


> Good Afternoon,
>
> My application works fine until I create a WAR file out of it and
> deploy it to Tomat. Once there I get a "Missing message key for
> "index.title" error. This error doesn't occur when running the
> development copy of the application. I have made sure that the
> ApplicationResources.properties file is the correct place in the WAR
> file.
>
> I'm sure that I have overlooked something obvious, and I would be
> grateful for someone pointing it out.
>
> Thanks
>
> Mark
>
> --
> The Difference Between Smart and Stupid is the Depth of the Hole You
> Make When You Screw Up.
>
>
> -
> 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]



ApplicationResources.properties

2003-12-20 Thread Mark Nichols
Good Afternoon,

My application works fine until I create a WAR file out of it and 
deploy it to Tomat. Once there I get a "Missing message key for 
"index.title" error. This error doesn't occur when running the 
development copy of the application. I have made sure that the 
ApplicationResources.properties file is the correct place in the WAR 
file.

I'm sure that I have overlooked something obvious, and I would be 
grateful for someone pointing it out.

Thanks

Mark

--
The Difference Between Smart and Stupid is the Depth of the Hole You 
Make When You Screw Up. 

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


RES: Multiple ApplicationResources.properties files

2003-12-09 Thread Tiago Henrique Costa Rodrigues Alves
Can you copy and paste the solution for your question?


-Mensagem original-
De: Clark Kent [mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 9 de dezembro de 2003 12:40
Para: Struts Users Mailing List; [EMAIL PROTECTED]
Assunto: Re: Multiple ApplicationResources.properties files


Many Thanks Manish

Manish Singla <[EMAIL PROTECTED]> wrote:There can be only one default
message-resources.
Second message-resources should have "key" attribute.
You have to use this "key" attribute in jsp custom tags or... to locate 
second message-resources..

HTH
Manish Singla

Clark Kent wrote:
> All,
> 
> I am trying to have 2 ApplicationResources.properties file each dealing
with different sub-applications. I have created the 2 separate resource
bundles along with different entries into the struts-config.xml as follows :

> 
> 
> 
> 
> 
> It seems to work fine for subapplication 2 but seems like the key-value
pairs cannot be accessed in subapplication 1. Am I missing something? 
> 
> Thanks,
> 
> CK
> 
> 
> 
> 
> 
> 
> 
> -
> Do you Yahoo!?
> New Yahoo! Photos - easier uploading and sharing


-- 
Thanks
Manish Singla
x73166


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



-
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing

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



Re: Multiple ApplicationResources.properties files

2003-12-09 Thread Clark Kent
Many Thanks Manish

Manish Singla <[EMAIL PROTECTED]> wrote:There can be only one default 
message-resources.
Second message-resources should have "key" attribute.
You have to use this "key" attribute in jsp custom tags or... to locate 
second message-resources..

HTH
Manish Singla

Clark Kent wrote:
> All,
> 
> I am trying to have 2 ApplicationResources.properties file each dealing with 
> different sub-applications. I have created the 2 separate resource bundles along 
> with different entries into the struts-config.xml as follows : 
> 
> 
> 
> 
> 
> It seems to work fine for subapplication 2 but seems like the key-value pairs cannot 
> be accessed in subapplication 1. Am I missing something? 
> 
> Thanks,
> 
> CK
> 
> 
> 
> 
> 
> 
> 
> -
> Do you Yahoo!?
> New Yahoo! Photos - easier uploading and sharing


-- 
Thanks
Manish Singla
x73166


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



-
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing

Re: Multiple ApplicationResources.properties files

2003-12-08 Thread Manish Singla
There can be only one default message-resources.
Second message-resources should have "key" attribute.
You have to use this "key" attribute in jsp custom tags or... to locate 
second message-resources..

HTH
Manish Singla
Clark Kent wrote:
All,

I am trying to have 2 ApplicationResources.properties file each dealing with different sub-applications.  I have created the 2 separate resource bundles along with different entries into the struts-config.xml as follows :  





It seems to work fine for subapplication 2 but seems like the key-value pairs cannot be accessed in subapplication 1.  Am I missing something? 

Thanks,

CK

 





-
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing


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


Multiple ApplicationResources.properties files

2003-12-08 Thread Clark Kent

All,

I am trying to have 2 ApplicationResources.properties file each dealing with different 
sub-applications.  I have created the 2 separate resource bundles along with different 
entries into the struts-config.xml as follows :  





It seems to work fine for subapplication 2 but seems like the key-value pairs cannot 
be accessed in subapplication 1.  Am I missing something? 

Thanks,

CK

 





-
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing

Re: using ApplicationResources.properties in the Action class

2003-11-17 Thread mohan
Cool guys
Sorry for asking such a dumb question. It can be easily called using the
MessageResources class.

Thank you


> I have and a structure like this
> project/src/java/webapp/- this contains the code ActionForm and Action
> classes
> project/web/app1-contains jsps for app1 and also
>  
> project/web/app1/WEB-INF/struts-config.xml,web.xml.,classes/ApplicationResource.properties
>
> project/web/app2-contains jsps for app1 and also
> project/web/app2/WEB-INF/struts-config.xml,web.xml.,classes/ApplicationResource.properties
>
> the java code in src directory is common to application app1 and app2.
> In my java code i want to use the ApplicationResources.properties for
> each app and produce generic code.
>
> Thank you
> --Mohan
>
>
>
>
>> Put the file where you want it and have ant copy the file to the
>> proper location for you.
>>
>> -jeff
>>
>> On Monday, November 17, 2003, at 02:42  PM, [EMAIL PROTECTED]
>> wrote:
>>
>>> Hi All
>>> I have my Action Class and ActionForm classes under project/src/java/
>>> and
>>> all the jsp stuff under web/project. I have struts-config.xml etc
>>> under web/project/WEB-INF. I have the ApplicationResources.properties
>>> file  under
>>> web/project/WEB-INF/classes. How can i access the
>>> ApplicationResources.properties file and its properties from my
>>> Action class. I do not want that to be under my src/java directory.
>>> Let me know
>>>
>>> Thanks
>>>
>>> --Mohan
>>>
>>>
>>>
>>>
>>>
>>> -
>>> 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: using ApplicationResources.properties in the Action class

2003-11-17 Thread mohan
I have and a structure like this
project/src/java/webapp/- this contains the code ActionForm and Action
classes
project/web/app1-contains jsps for app1 and also
 
project/web/app1/WEB-INF/struts-config.xml,web.xml.,classes/ApplicationResource.properties

project/web/app2-contains jsps for app1 and also
project/web/app2/WEB-INF/struts-config.xml,web.xml.,classes/ApplicationResource.properties

the java code in src directory is common to application app1 and app2.
In my java code i want to use the ApplicationResources.properties for each
app and produce generic code.

Thank you
--Mohan




> Put the file where you want it and have ant copy the file to the proper
> location for you.
>
> -jeff
>
> On Monday, November 17, 2003, at 02:42  PM, [EMAIL PROTECTED] wrote:
>
>> Hi All
>> I have my Action Class and ActionForm classes under project/src/java/
>> and
>> all the jsp stuff under web/project. I have struts-config.xml etc
>> under web/project/WEB-INF. I have the ApplicationResources.properties
>> file  under
>> web/project/WEB-INF/classes. How can i access the
>> ApplicationResources.properties file and its properties from my Action
>> class. I do not want that to be under my src/java directory. Let me
>> know
>>
>> Thanks
>>
>> --Mohan
>>
>>
>>
>>
>>
>> -
>> 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: using ApplicationResources.properties in the Action class

2003-11-17 Thread Jeff Kyser
Put the file where you want it and have ant copy the file to the proper
location for you.
-jeff

On Monday, November 17, 2003, at 02:42  PM, [EMAIL PROTECTED] wrote:

Hi All
I have my Action Class and ActionForm classes under project/src/java/ 
and
all the jsp stuff under web/project. I have struts-config.xml etc under
web/project/WEB-INF. I have the ApplicationResources.properties file 
under
web/project/WEB-INF/classes. How can i access the
ApplicationResources.properties file and its properties from my Action
class. I do not want that to be under my src/java directory. Let me 
know

Thanks

--Mohan





-
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]


using ApplicationResources.properties in the Action class

2003-11-17 Thread mohan
Hi All
I have my Action Class and ActionForm classes under project/src/java/ and
all the jsp stuff under web/project. I have struts-config.xml etc under
web/project/WEB-INF. I have the ApplicationResources.properties file under
web/project/WEB-INF/classes. How can i access the
ApplicationResources.properties file and its properties from my Action
class. I do not want that to be under my src/java directory. Let me know

Thanks

--Mohan





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



RE: ApplicationResources.properties

2003-11-03 Thread Wendy Smoak
Peter wrote:
> Given the following ApplicationResources.properties file..
> my.message=hello world.
> How do I print out "my.message" in a jsp page?

Or with JSTL:

In web.xml:
  
 
javax.servlet.jsp.jstl.fmt.localizationContext
ApplicationResources
  

In JSP:
<%@ taglib uri="http://java.sun.com/jstl/fmt"; prefix="fmt" %>


-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University, PA, IRM 

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



Re: ApplicationResources.properties

2003-11-03 Thread Hubert Rabago
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>


--- "Norr, Peter" <[EMAIL PROTECTED]> wrote:
> Newbie question..
> 
> Given the following ApplicationResources.properties file..
> 
> my.message=hello world.
> 
> How do I print out "my.message" in a jsp page?
> 
> Peter
> 

__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

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



ApplicationResources.properties

2003-11-03 Thread Norr, Peter
Newbie question..

Given the following ApplicationResources.properties file..

my.message=hello world.

How do I print out "my.message" in a jsp page?

Peter

--
This message is intended only for the personal and confidential use of the
designated recipient(s) named above.  If you are not the intended recipient of
this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not be regarded as
an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be
secure or error-free.  Therefore, we do not represent that this information is
complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice.


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



RE: ApplicationResources.properties

2003-09-24 Thread David G Friedman
Thanks for spelling it out for me, it helped
find the problem.  Somehow it was sitting under 

WEB-INF/classes/java/resources/application.properties

instead of 

WEB-INF/classes/resources/application.properties

Talk about a spooky Eclipse changes.  I refactored
a few things when I did the hibernate changes I
mentioned but I'm pretty sure I didn't refactor 
the "application.resources" file, though it seems
Eclipse took that liberty (yes, I know I can't
blame Eclipse, just my mistyping/fat-fingering).

David

-Original Message-
From: Chen, Gin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 6:02 PM
To: 'Struts Users Mailing List'
Subject: RE: ApplicationResources.properties


Hmm I'm not sure David
But based on ur message-resources it will try to look for:

WEB-INF/classes/resources/application.properties.
Is that how you have it set up?
-Tim

-Original Message-
From: David G Friedman [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 24, 2003 5:24 PM
To: Struts Users Mailing List
Subject: RE: ApplicationResources.properties


I'm haunted too.  I changed a hibernate class,
had to fix a few action classes to work with it, 
and suddenly my validation framework (hell, my 
whole application, cannot see my message resources,
the struts-config.xml (only one, no modules),
validation.xml, and JSP are unchanged.

My message resources line in my struts-config.xml
is below and there are no errors in Tomcat about
anything being out of place or the wrong syntax.


This is too freaky.  Does Anyone have any 
suggestions where to look next?

Regards,
David

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 5:16 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: ApplicationResources.properties


Chen-
Here is my struts-config.xml



http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>





Anything amiss?
Thanks,
-M
- Original Message - 
From: "Chen, Gin" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, September 24, 2003 4:57 PM
Subject: RE: ApplicationResources.properties


> Have u tried the Struts config style?
> I noticed that you are using the old style of init-param
> Look at my earlier response.
> -Tim
> 
> -Original Message-
> From: Martin Gainty [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, September 24, 2003 4:54 PM
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: Re: ApplicationResources.properties
> 
> 
> Its in WEB-INF/classes
> Tomcat doesnt see it
> 
> Thanks anyway,
> -Martin
> - Original Message - 
> From: "Wendy Smoak" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Wednesday, September 24, 2003 3:27 PM
> Subject: RE: ApplicationResources.properties
> 
> 
> Martin wrote: 
> > What mechanism does struts use to find the
> ApplicationResources.properties
> > file? All attempts by Tomcat to locate the file result in failure
> > 
> >   application
> >   ApplicationResources
> > 
> 
> Where did you put the file?  With the config above, try putting it
> directly in in WEB-INF/classes.  As Navjot noted, the file needs to be
> visible on the classpath.
> 
> -- 
> Wendy Smoak
> Applications Systems Analyst, Sr.
> Arizona State University, PA, IRM
> 
> -
> 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]


-
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: ApplicationResources.properties

2003-09-24 Thread Chen, Gin
Hmm I'm not sure David
But based on ur message-resources it will try to look for:

WEB-INF/classes/resources/application.properties.
Is that how you have it set up?
-Tim

-Original Message-
From: David G Friedman [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 24, 2003 5:24 PM
To: Struts Users Mailing List
Subject: RE: ApplicationResources.properties


I'm haunted too.  I changed a hibernate class,
had to fix a few action classes to work with it, 
and suddenly my validation framework (hell, my 
whole application, cannot see my message resources,
the struts-config.xml (only one, no modules),
validation.xml, and JSP are unchanged.

My message resources line in my struts-config.xml
is below and there are no errors in Tomcat about
anything being out of place or the wrong syntax.


This is too freaky.  Does Anyone have any 
suggestions where to look next?

Regards,
David

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 5:16 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: ApplicationResources.properties


Chen-
Here is my struts-config.xml



http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>





Anything amiss?
Thanks,
-M
- Original Message - 
From: "Chen, Gin" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, September 24, 2003 4:57 PM
Subject: RE: ApplicationResources.properties


> Have u tried the Struts config style?
> I noticed that you are using the old style of init-param
> Look at my earlier response.
> -Tim
> 
> -Original Message-
> From: Martin Gainty [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, September 24, 2003 4:54 PM
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: Re: ApplicationResources.properties
> 
> 
> Its in WEB-INF/classes
> Tomcat doesnt see it
> 
> Thanks anyway,
> -Martin
> - Original Message - 
> From: "Wendy Smoak" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Wednesday, September 24, 2003 3:27 PM
> Subject: RE: ApplicationResources.properties
> 
> 
> Martin wrote: 
> > What mechanism does struts use to find the
> ApplicationResources.properties
> > file? All attempts by Tomcat to locate the file result in failure
> > 
> >   application
> >   ApplicationResources
> > 
> 
> Where did you put the file?  With the config above, try putting it
> directly in in WEB-INF/classes.  As Navjot noted, the file needs to be
> visible on the classpath.
> 
> -- 
> Wendy Smoak
> Applications Systems Analyst, Sr.
> Arizona State University, PA, IRM
> 
> -
> 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]


-
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: ApplicationResources.properties

2003-09-24 Thread David G Friedman
I'm haunted too.  I changed a hibernate class,
had to fix a few action classes to work with it, 
and suddenly my validation framework (hell, my 
whole application, cannot see my message resources,
the struts-config.xml (only one, no modules),
validation.xml, and JSP are unchanged.

My message resources line in my struts-config.xml
is below and there are no errors in Tomcat about
anything being out of place or the wrong syntax.


This is too freaky.  Does Anyone have any 
suggestions where to look next?

Regards,
David

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 5:16 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: ApplicationResources.properties


Chen-
Here is my struts-config.xml



http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>





Anything amiss?
Thanks,
-M
- Original Message - 
From: "Chen, Gin" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, September 24, 2003 4:57 PM
Subject: RE: ApplicationResources.properties


> Have u tried the Struts config style?
> I noticed that you are using the old style of init-param
> Look at my earlier response.
> -Tim
> 
> -Original Message-
> From: Martin Gainty [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, September 24, 2003 4:54 PM
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: Re: ApplicationResources.properties
> 
> 
> Its in WEB-INF/classes
> Tomcat doesnt see it
> 
> Thanks anyway,
> -Martin
> - Original Message - 
> From: "Wendy Smoak" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Wednesday, September 24, 2003 3:27 PM
> Subject: RE: ApplicationResources.properties
> 
> 
> Martin wrote: 
> > What mechanism does struts use to find the
> ApplicationResources.properties
> > file? All attempts by Tomcat to locate the file result in failure
> > 
> >   application
> >   ApplicationResources
> > 
> 
> Where did you put the file?  With the config above, try putting it
> directly in in WEB-INF/classes.  As Navjot noted, the file needs to be
> visible on the classpath.
> 
> -- 
> Wendy Smoak
> Applications Systems Analyst, Sr.
> Arizona State University, PA, IRM
> 
> -
> 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]


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



Re: ApplicationResources.properties

2003-09-24 Thread Martin Gainty
Chen-
Here is my struts-config.xml



http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>





Anything amiss?
Thanks,
-M
- Original Message - 
From: "Chen, Gin" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, September 24, 2003 4:57 PM
Subject: RE: ApplicationResources.properties


> Have u tried the Struts config style?
> I noticed that you are using the old style of init-param
> Look at my earlier response.
> -Tim
> 
> -Original Message-
> From: Martin Gainty [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, September 24, 2003 4:54 PM
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: Re: ApplicationResources.properties
> 
> 
> Its in WEB-INF/classes
> Tomcat doesnt see it
> 
> Thanks anyway,
> -Martin
> - Original Message - 
> From: "Wendy Smoak" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Wednesday, September 24, 2003 3:27 PM
> Subject: RE: ApplicationResources.properties
> 
> 
> Martin wrote: 
> > What mechanism does struts use to find the
> ApplicationResources.properties
> > file? All attempts by Tomcat to locate the file result in failure
> > 
> >   application
> >   ApplicationResources
> > 
> 
> Where did you put the file?  With the config above, try putting it
> directly in in WEB-INF/classes.  As Navjot noted, the file needs to be
> visible on the classpath.
> 
> -- 
> Wendy Smoak
> Applications Systems Analyst, Sr.
> Arizona State University, PA, IRM
> 
> -
> 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: ApplicationResources.properties

2003-09-24 Thread Chen, Gin
Have u tried the Struts config style?
I noticed that you are using the old style of init-param
Look at my earlier response.
-Tim

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 24, 2003 4:54 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: ApplicationResources.properties


Its in WEB-INF/classes
Tomcat doesnt see it

Thanks anyway,
-Martin
- Original Message - 
From: "Wendy Smoak" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 24, 2003 3:27 PM
Subject: RE: ApplicationResources.properties


Martin wrote: 
> What mechanism does struts use to find the
ApplicationResources.properties
> file? All attempts by Tomcat to locate the file result in failure
> 
>   application
>   ApplicationResources
> 

Where did you put the file?  With the config above, try putting it
directly in in WEB-INF/classes.  As Navjot noted, the file needs to be
visible on the classpath.

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University, PA, IRM

-
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: ApplicationResources.properties

2003-09-24 Thread Martin Gainty
Its in WEB-INF/classes
Tomcat doesnt see it

Thanks anyway,
-Martin
- Original Message - 
From: "Wendy Smoak" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 24, 2003 3:27 PM
Subject: RE: ApplicationResources.properties


Martin wrote: 
> What mechanism does struts use to find the
ApplicationResources.properties
> file? All attempts by Tomcat to locate the file result in failure
> 
>   application
>   ApplicationResources
> 

Where did you put the file?  With the config above, try putting it
directly in in WEB-INF/classes.  As Navjot noted, the file needs to be
visible on the classpath.

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University, PA, IRM

-
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: ApplicationResources.properties

2003-09-24 Thread Wendy Smoak
Martin wrote: 
> What mechanism does struts use to find the
ApplicationResources.properties
> file? All attempts by Tomcat to locate the file result in failure
> 
>   application
>   ApplicationResources
> 

Where did you put the file?  With the config above, try putting it
directly in in WEB-INF/classes.  As Navjot noted, the file needs to be
visible on the classpath.

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University, PA, IRM

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



RE: ApplicationResources.properties

2003-09-24 Thread Steve Raeburn
The exact location is configured in struts-config.xml

e.g.
  

looks for a file named 'application.properties' in the 'resources'
package.

- or -
  

looks for a file, 'ApplicationResources.properties' in
the 'org.apache.struts.webapp.example' package.


These examples are taken from the struts-example and struts-blank
example web applications that are bundled with Struts.

http://jakarta.apache.org/struts/userGuide/configuration.html#resource
s_config


Steve


> -Original Message-
> From: Navjot Singh [mailto:[EMAIL PROTECTED]
> Sent: September 24, 2003 12:22 PM
> To: Struts Users Mailing List
> Subject: RE: ApplicationResources.properties
>
>
> it just should be in classpath.
>
> |-Original Message-
> |From: Martin Gainty [mailto:[EMAIL PROTECTED]
> |Sent: Thursday, September 25, 2003 12:52 AM
> |To: [EMAIL PROTECTED]
> |Subject: ApplicationResources.properties
> |
> |
> |What mechanism does struts use to find the
> |ApplicationResources.properties file?
> |All attempts by Tomcat to locate the file result in failure
> |
> |The configuration in web.xml as:
> |
> |
> |
> | |Application 2.2//EN"
> "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
> |
> |
> |
> |
> |
> |
> |
> |action
> |
> |org.apache.struts.action.ActionServlet let-class>
> |
> |
> |
> |application
> |
> |ApplicationResources
> |
> |
> |
> |Thanks,
> |-Martin
> |
>
> 
> -
> 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: ApplicationResources.properties

2003-09-24 Thread Chen, Gin
Struts-config.xml:  
http://jakarta.apache.org/struts/userGuide/configuration.html#resources_conf
ig
-Tim

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 24, 2003 3:22 PM
To: [EMAIL PROTECTED]
Subject: ApplicationResources.properties


What mechanism does struts use to find the ApplicationResources.properties
file?
All attempts by Tomcat to locate the file result in failure

The configuration in web.xml as:



http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>







action

org.apache.struts.action.ActionServlet



application

ApplicationResources



Thanks,
-Martin

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



RE: ApplicationResources.properties

2003-09-24 Thread Navjot Singh
it just should be in classpath.

|-Original Message-
|From: Martin Gainty [mailto:[EMAIL PROTECTED]
|Sent: Thursday, September 25, 2003 12:52 AM
|To: [EMAIL PROTECTED]
|Subject: ApplicationResources.properties
|
|
|What mechanism does struts use to find the 
|ApplicationResources.properties file?
|All attempts by Tomcat to locate the file result in failure
|
|The configuration in web.xml as:
|
|
|
|http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
|
|
|
|
|
|
|
|action
|
|org.apache.struts.action.ActionServlet
|
|
|
|application
|
|ApplicationResources
|
|
|
|Thanks,
|-Martin
|

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



ApplicationResources.properties

2003-09-24 Thread Martin Gainty
What mechanism does struts use to find the ApplicationResources.properties file?
All attempts by Tomcat to locate the file result in failure

The configuration in web.xml as:



http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>







action

org.apache.struts.action.ActionServlet



application

ApplicationResources



Thanks,
-Martin


RE : multiple applicationresources.properties file.

2003-08-14 Thread Christian Burger
At least one per sub-application!




I think yes.


-Message d'origine-
De : deepaksawdekar [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 13 août 2003 13:08
À : [EMAIL PROTECTED]
Objet : multiple applicationresources.properties file.


Can we use mutilple applicationresources.properties files in struts1.1 ?


Deepak

-
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]


ForwardSourceID:NTB70E 


multiple applicationresources.properties file.

2003-08-14 Thread deepaksawdekar
Can we use mutilple applicationresources.properties files in struts1.1 ? 

Deepak

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



RE : multiple applicationresources.properties file.

2003-08-14 Thread Laurent MARQUEZ
I think yes.


-Message d'origine-
De : deepaksawdekar [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 13 août 2003 13:08
À : [EMAIL PROTECTED]
Objet : multiple applicationresources.properties file.


Can we use mutilple applicationresources.properties files in struts1.1 ?


Deepak

-
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 : RE : multiple applicationresources.properties file.

2003-08-14 Thread Laurent MARQUEZ
http://jakarta.apache.org/struts/userGuide/configuration.html
5.3.1 they don't say that's totally true, 
I would like to test but  
i don't understand how to use multiple modules(you can help me if you
want)

To test, you just have to set different message resources definitions
In struts-config.xml:

In struts-config-other.xml


Application.properties and other.properties must be your classpath,
The /WEB-INF/classes  directory.

Maybe, it's wrong?

If you have complete example of multiple module using
SwitchAction, you can send me it?

Best regards,  Laurent.



-Message d'origine-
De : deepaksawdekar [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 13 août 2003 14:17
À : Struts Users Mailing List
Objet : RE: RE : multiple applicationresources.properties file.


Can you please send me some article or examples.

Thanks and Regards
Deepak

-Original Message-
From: Laurent MARQUEZ [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 13, 2003 5:25 PM
To: 'Struts Users Mailing List'
Subject: RE : multiple applicationresources.properties file.


I think yes.


-Message d'origine-
De : deepaksawdekar [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 13 août 2003 13:08
À : [EMAIL PROTECTED]
Objet : multiple applicationresources.properties file.


Can we use mutilple applicationresources.properties files in struts1.1 ?


Deepak

-
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: RE : multiple applicationresources.properties file.

2003-08-14 Thread deepaksawdekar
Can you please send me some article or examples.

Thanks and Regards
Deepak

-Original Message-
From: Laurent MARQUEZ [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 13, 2003 5:25 PM
To: 'Struts Users Mailing List'
Subject: RE : multiple applicationresources.properties file.


I think yes.


-Message d'origine-
De : deepaksawdekar [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 13 août 2003 13:08
À : [EMAIL PROTECTED]
Objet : multiple applicationresources.properties file.


Can we use mutilple applicationresources.properties files in struts1.1 ?


Deepak

-
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: RE : multiple applicationresources.properties file.

2003-08-14 Thread Rohit Aeron
Try putting another file in web.xml

Regards
Rohit Aeron


-Original Message-
From: deepaksawdekar [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 13, 2003 5:47 PM
To: Struts Users Mailing List
Subject: RE: RE : multiple applicationresources.properties file.

Can you please send me some article or examples.

Thanks and Regards
Deepak

-Original Message-
From: Laurent MARQUEZ [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 13, 2003 5:25 PM
To: 'Struts Users Mailing List'
Subject: RE : multiple applicationresources.properties file.


I think yes.


-Message d'origine-
De : deepaksawdekar [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 13 août 2003 13:08
À : [EMAIL PROTECTED]
Objet : multiple applicationresources.properties file.


Can we use mutilple applicationresources.properties files in struts1.1 ?


Deepak

-
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]



*--
This message and any attachment(s) is intended only for the use of the addressee(s) 
and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the 
intended addressee(s), you are hereby notified that any use, distribution, disclosure 
or copying of this communication is strictly prohibited. If you have received this 
communication in error, please erase all copies of the message and its attachment(s) 
and notify the sender or Kanbay postmaster immediately.

Any views expressed in this message are those of the individual sender and not of 
Kanbay.

Although we have taken steps to ensure that this e-mail and any attachment(s) are free 
from any virus, we advise that in keeping with good computing practice the recipient 
should ensure they are actually virus free.


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



Re: ApplicationResources.properties from Database

2003-07-08 Thread James Mitchell
On Tuesday 08 July 2003 14:09, you wrote:
> James,
>
> Thank You very Much

Sure, no problem.  I'm actually working on an upgrade for this as I type.  It 
will use the latest and greatest from OJB instead of an older version.

Let me know if you need help with it.

>
>
> From: James Mitchell <[EMAIL PROTECTED]>
>
> >To: "Tonny Moon" <[EMAIL PROTECTED]>
> >Subject: Re: ApplicationResources.properties from Database
> >Date: Mon, 7 Jul 2003 13:44:06 -0400
> >
> >On Tuesday 01 July 2003 17:09, you wrote:
> > > Hi,
> > >
> > > I saw the News of Struts dated 2002 Sep 10 taking about
> > > DBMessageResourcesand I want to know how can I get a copy of this
> >
> >class
> >
> > > ??
> > >
> > > I working with struts-1.0 and very interesting on get message from
> >
> >DB
> >
> > > table..
> >
> >The MessageResources implementation that I wrote only works with Struts
> >1.1.
> >You can find it at http://sourceforge.net/projects/struts/
> >
> > > Thanks a Lot. !!
> > >
> > > _
> > > Protect your PC - get McAfee.com VirusScan Online
> > > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
> >
> >--
> >James Mitchell
> >Software Developer/Struts Evangelist
> >http://www.struts-atlanta.org
> >770-822-3359
> >AIM:jmitchtx
>
> _
> Add photos to your e-mail with MSN 8. Get 2 months FREE*.
> http://join.msn.com/?page=features/featuredemail

-- 
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
678-910-8017
AIM:jmitchtx



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



Re: Accessing ApplicationResources.properties

2003-06-09 Thread ian_d_stewart


Or you could just use:

MessageResources bundle = this.getResources();


Ian

Ian D. Stewart
Open Systems Engineer II
Enterprise Midrange - Bank One Infrastructure & Operations
[EMAIL PROTECTED]
(614) 213-6100




Kevin Robair <[EMAIL PROTECTED]> on 06/09/2003 09:53:29 AM

Please respond to "Struts Users Mailing List"
  <[EMAIL PROTECTED]>

To:   Struts Users Mailing List <[EMAIL PROTECTED]>
cc:

Subject:  Re: Accessing ApplicationResources.properties



You can treat it as a ResourceBundle:

String bundleName =
"com.mycompany.myapp.ApplicationResources";

ResourceBundle  bundle
   ResourceBundle.getBundle(bundleName,
currentLocale);

Leave out currentLocale if you want the default.

A more consistent way is, if you have access to the
Session"

MessageResources bundle = (MessageResources)
request.getSession().getServletContext().getAttribute
("org.apache.struts.action.MESSAGE");


-Kevin

--- Zoran Avtarovski <[EMAIL PROTECTED]> wrote:
> I have what is hopefully a simple question.
>
> I have a set a number of file system specific
> variables in my
> ApplicationResources.properties file to make it
> easier to deploy the
> application on different platforms.
>
> I can access Message Resources properties from
> Action classes using:
>
> MessageResources messages =
> getResources(request);
> String message =
> messages.getMessage("the.chosen.message");
>
> Outside an action class I'm having trouble
> instantiating the
> MessageResources.
>
> I can see that I need to use:
>
> MessageResources messages = MessageResources (x,
> y);
>
> But I don't know what arguments  to pass as x and y
>
> Could somebody please email me a way to get this
> done in my helper classes.
>
> Thanks
>
> Zoran
>
>
>
-
> 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]









This transmission may contain information that is privileged, confidential and/or 
exempt from disclosure under applicable law. If you are not the intended recipient, 
you are hereby notified that any disclosure, copying, distribution, or use of the 
information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. 
If you received this transmission in error, please immediately contact the sender and 
destroy the material in its entirety, whether in electronic or hard copy format. Thank 
you.


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



Re: Accessing ApplicationResources.properties

2003-06-09 Thread Kevin Robair
You can treat it as a ResourceBundle:

String bundleName =
"com.mycompany.myapp.ApplicationResources";

ResourceBundle  bundle
   ResourceBundle.getBundle(bundleName,
currentLocale);

Leave out currentLocale if you want the default.

A more consistent way is, if you have access to the
Session"

MessageResources bundle = (MessageResources)
request.getSession().getServletContext().getAttribute("org.apache.struts.action.MESSAGE");


-Kevin

--- Zoran Avtarovski <[EMAIL PROTECTED]> wrote:
> I have what is hopefully a simple question.
> 
> I have a set a number of file system specific
> variables in my
> ApplicationResources.properties file to make it
> easier to deploy the
> application on different platforms.
> 
> I can access Message Resources properties from
> Action classes using:
> 
> MessageResources messages =
> getResources(request);
> String message =
> messages.getMessage("the.chosen.message");
> 
> Outside an action class I'm having trouble
> instantiating the
> MessageResources.
> 
> I can see that I need to use:
> 
> MessageResources messages = MessageResources (x,
> y);
> 
> But I don't know what arguments  to pass as x and y
> 
> Could somebody please email me a way to get this
> done in my helper classes.
> 
> Thanks
> 
> Zoran
> 
> 
>
-
> 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]



Accessing ApplicationResources.properties

2003-06-09 Thread Zoran Avtarovski
I have what is hopefully a simple question.

I have a set a number of file system specific variables in my
ApplicationResources.properties file to make it easier to deploy the
application on different platforms.

I can access Message Resources properties from Action classes using:

MessageResources messages = getResources(request);
String message = messages.getMessage("the.chosen.message");

Outside an action class I'm having trouble instantiating the
MessageResources.

I can see that I need to use:

MessageResources messages = MessageResources (x, y);

But I don't know what arguments  to pass as x and y

Could somebody please email me a way to get this done in my helper classes.

Thanks

Zoran


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



RE: help ApplicationResources.properties

2003-03-25 Thread Kaja.Mohideen
Rajesh,
  Let us first try whether ApplicationResources file is working or not..

  Add key="prompt.title" in your jsp page..Add prompt.title with some name in 
ApplicationResources.properties file

  Let us see it displays that title in your Browser,,If so Resource file is working 
fine..


  Here I have seen your Validate() function everything is good,,But i have doubt you 
put capital "PORT_PCT"(should be the field name), you try to use the same case which 
you are using in jsp page..

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 25, 2003 11:30 AM
To: [EMAIL PROTECTED]
Subject: help ApplicationResources.properties


Hi,

 I have the following in the web.xml

  action
  lam.mffs.action.MyActionServlet
  
application
lam.mffs.form.ApplicationResources
  

  config
  /WEB-INF/struts-config.xml


  debug
  2


  detail
  2


  validate
  true

2


I have MyActionServlet extend ActionServlet with init method as

public void init() throws ServletException
  {
super.init();
ConvertUtils.register(new BigDecimalConverter(null),
java.math.BigDecimal.class);

  }

now when I try to do the following in my formbean validate method

if (this.getPort_pct() == null)
{
  LamLog.log(this, LamLog.INFO,"Error port_pct is null");
  errors.add("PORT_PCT",
 new ActionError("errors.bigdecimal2"));
}

I get  a java.lang.NullPointerException at

 errors.add("PORT_PCT",
 new ActionError("errors.bigdecimal2"));

What is wrong.. I tried the other way of



in the struts-config.xml but even that gave me the same error

Regards
Rajesh J







-
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]



help ApplicationResources.properties

2003-03-25 Thread Rajesh . Jayabalan
Hi,

 I have the following in the web.xml

  action
  lam.mffs.action.MyActionServlet
  
application
lam.mffs.form.ApplicationResources
  

  config
  /WEB-INF/struts-config.xml


  debug
  2


  detail
  2


  validate
  true

2


I have MyActionServlet extend ActionServlet with init method as

public void init() throws ServletException
  {
super.init();
ConvertUtils.register(new BigDecimalConverter(null),
java.math.BigDecimal.class);

  }

now when I try to do the following in my formbean validate method

if (this.getPort_pct() == null)
{
  LamLog.log(this, LamLog.INFO,"Error port_pct is null");
  errors.add("PORT_PCT",
 new ActionError("errors.bigdecimal2"));
}

I get  a java.lang.NullPointerException at

 errors.add("PORT_PCT",
 new ActionError("errors.bigdecimal2"));

What is wrong.. I tried the other way of



in the struts-config.xml but even that gave me the same error

Regards
Rajesh J







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



Re: changing ApplicationResources.properties runtime

2003-02-28 Thread David Graham
In properties file:
lastJDBCError.value={0}
Then construct the error message with the exception text as the first 
replacement value.

David



From: "Arunachalam Jaisankar" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: changing ApplicationResources.properties runtime
Date: Fri, 28 Feb 2003 18:40:32 +1300
Hi All,

I've a column  "lastJDBCError.value" in ApplicationResources.Properties
file.
And I want to change the value of that column in run time, i mean whenever 
I
get an SQL Exception I want to fill "lastJDBCError.value" with that
Exception.

Is it possible to change run time? If yes, kindly let me know how to do
that.
regards
Jai
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  
http://join.msn.com/?page=features/virus

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


changing ApplicationResources.properties runtime

2003-02-27 Thread Arunachalam Jaisankar
Hi All,

I've a column  "lastJDBCError.value" in ApplicationResources.Properties
file.
And I want to change the value of that column in run time, i mean whenever I
get an SQL Exception I want to fill "lastJDBCError.value" with that
Exception.

Is it possible to change run time? If yes, kindly let me know how to do
that.

regards
Jai


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



RE: ApplicationResources.properties

2003-01-03 Thread pqin
Isn't it defined in struts config xml? ?

Regards,
 
 
PQ
 
"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-Original Message-
From: Jimmy Oh [mailto:[EMAIL PROTECTED]] 
Sent: January 3, 2003 12:27 AM
To: Struts Users
Subject: ApplicationResources.properties

Hi,
I am new to Struts.  I want to know whether is there a way (or is it
possible at all?) to put the `ApplicationResources.properties' file in
another directory other than in the `WEB-INF/classes' directory onwards?
That is, I do not want `ApplicationResources.properties' to be in
`WEB-INF/classes' or any of its sub-directories.

TIA
Jimmy


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



Re: ApplicationResources.properties

2003-01-02 Thread Dan Tran
Consult your servlet container to add additional classpath
(ie your property file path)

-D
- Original Message -
From: "Jimmy Oh" <[EMAIL PROTECTED]>
To: "Struts Users" <[EMAIL PROTECTED]>
Sent: Thursday, January 02, 2003 9:27 PM
Subject: ApplicationResources.properties


> Hi,
> I am new to Struts.  I want to know whether is there a way (or is it
> possible at all?) to put the `ApplicationResources.properties' file in
> another directory other than in the `WEB-INF/classes' directory onwards?
> That is, I do not want `ApplicationResources.properties' to be in
> `WEB-INF/classes' or any of its sub-directories.
>
> TIA
> Jimmy
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>

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




ApplicationResources.properties

2003-01-02 Thread Jimmy Oh
Hi,
I am new to Struts.  I want to know whether is there a way (or is it
possible at all?) to put the `ApplicationResources.properties' file in
another directory other than in the `WEB-INF/classes' directory onwards?
That is, I do not want `ApplicationResources.properties' to be in
`WEB-INF/classes' or any of its sub-directories.

TIA
Jimmy


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




RE: ApplicationResources.properties not reloading added keys

2002-11-26 Thread Alvarado, Juan (c)
Thanks for your suggestions.

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 4:33 PM
To: Struts Users Mailing List
Subject: RE: ApplicationResources.properties not reloading added keys


Yes, in these cases, it would probably be quicker to manually check (from
your
source all the way to the deployed application) that the file exists and was
updated.

If all else fails, blow away JBoss' work directory:
$JBOSS_HOME/server/default/tmp/deploy/server/default/deploy/{yourapp.war}

Hope that helps.


--
James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org

"If you were plowing a field, which would you rather use? Two strong oxen or
1024 chickens?"
- Seymour Cray (1925-1996), father of supercomputing


> -Original Message-
> From: Alvarado, Juan (c) [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 26, 2002 4:25 PM
> To: 'Struts Users Mailing List'
> Subject: RE: ApplicationResources.properties not reloading added keys
>
>
> The way I'm working is as follows:
>
> We have an ant task that will build an ear file.
> What we then do is through some ant tasks, extract the ear file into the
> deploy folder of jboss. Another task then extracts the war file into the
> deploy folder also. So what I end up with is as follows:
>
> $JBOSS_DEPLOY_DIRECTORY/$EAR_DIRECTORY
> $JBOSS_DEPLOY_DIRECTORY/$WAR_DIRECTORY
>
> Inside the $EAR_DIRECTORY is your typical J2EE stuff, and inside the
> $WAR_DIRECTORY is the web-app.
>
> Whenever I make a change to the properties file, I have an ant task that
> will touch the web.xml of the web-app, but this doesn't work. Shutting
down
> and restarting jboss from scratch does not do the trick either. Pretty
> weird
>
> Thanks for the quick reply.
>
> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 26, 2002 4:14 PM
> To: Struts Users Mailing List
> Subject: RE: ApplicationResources.properties not reloading added keys
>
>
> Please describe how you are working
>
> a, b, c, or some other way:
>
> a) building .war and deploy/redeploy
> b) changing the files in place (I don't think this is possible)
> c) working right in the deploy directory
>
> If a, are you sure you are not adding it to the .properties that gets
> overwritten when building?
> If c, the app will not redeploy itself when a property file changes (at
> least
> not last time I checked)
>
>
>
> --
> James Mitchell
> Software Engineer/Struts Evangelist
> http://www.open-tools.org
>
> "If you were plowing a field, which would you rather use? Two strong oxen
or
> 1024 chickens?"
> - Seymour Cray (1925-1996), father of supercomputing
>
>
> > -Original Message-
> > From: Alvarado, Juan (c) [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, November 26, 2002 4:04 PM
> > To: '[EMAIL PROTECTED]'
> > Subject: ApplicationResources.properties not reloading added keys
> >
> >
> > Hi:
> >
> > I am using jboss-3.03 with tomcat 4.05 and I cannot get my
> > ApplicationResources.properties to display newly added keys. I have
> > restarted jboss and still no luck. All I get is a message like this:
> > ???en_US.prompt.application.url???
> > I know that the file ApplicationResources.properties  is under
> > WEB-INF/classes and it does have the prompt.application.url key.
> >
> > If anyone has any idea how to solve this under the environment described
> > above, I'd appreciate if you could share them with me.
> >
> > Thanks in advance
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
> >
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


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




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




RE: ApplicationResources.properties not reloading added keys

2002-11-26 Thread James Mitchell
Yes, in these cases, it would probably be quicker to manually check (from your
source all the way to the deployed application) that the file exists and was
updated.

If all else fails, blow away JBoss' work directory:
$JBOSS_HOME/server/default/tmp/deploy/server/default/deploy/{yourapp.war}

Hope that helps.


--
James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org

"If you were plowing a field, which would you rather use? Two strong oxen or
1024 chickens?"
- Seymour Cray (1925-1996), father of supercomputing


> -Original Message-
> From: Alvarado, Juan (c) [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 26, 2002 4:25 PM
> To: 'Struts Users Mailing List'
> Subject: RE: ApplicationResources.properties not reloading added keys
>
>
> The way I'm working is as follows:
>
> We have an ant task that will build an ear file.
> What we then do is through some ant tasks, extract the ear file into the
> deploy folder of jboss. Another task then extracts the war file into the
> deploy folder also. So what I end up with is as follows:
>
> $JBOSS_DEPLOY_DIRECTORY/$EAR_DIRECTORY
> $JBOSS_DEPLOY_DIRECTORY/$WAR_DIRECTORY
>
> Inside the $EAR_DIRECTORY is your typical J2EE stuff, and inside the
> $WAR_DIRECTORY is the web-app.
>
> Whenever I make a change to the properties file, I have an ant task that
> will touch the web.xml of the web-app, but this doesn't work. Shutting down
> and restarting jboss from scratch does not do the trick either. Pretty
> weird
>
> Thanks for the quick reply.
>
> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 26, 2002 4:14 PM
> To: Struts Users Mailing List
> Subject: RE: ApplicationResources.properties not reloading added keys
>
>
> Please describe how you are working
>
> a, b, c, or some other way:
>
> a) building .war and deploy/redeploy
> b) changing the files in place (I don't think this is possible)
> c) working right in the deploy directory
>
> If a, are you sure you are not adding it to the .properties that gets
> overwritten when building?
> If c, the app will not redeploy itself when a property file changes (at
> least
> not last time I checked)
>
>
>
> --
> James Mitchell
> Software Engineer/Struts Evangelist
> http://www.open-tools.org
>
> "If you were plowing a field, which would you rather use? Two strong oxen or
> 1024 chickens?"
> - Seymour Cray (1925-1996), father of supercomputing
>
>
> > -Original Message-
> > From: Alvarado, Juan (c) [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, November 26, 2002 4:04 PM
> > To: '[EMAIL PROTECTED]'
> > Subject: ApplicationResources.properties not reloading added keys
> >
> >
> > Hi:
> >
> > I am using jboss-3.03 with tomcat 4.05 and I cannot get my
> > ApplicationResources.properties to display newly added keys. I have
> > restarted jboss and still no luck. All I get is a message like this:
> > ???en_US.prompt.application.url???
> > I know that the file ApplicationResources.properties  is under
> > WEB-INF/classes and it does have the prompt.application.url key.
> >
> > If anyone has any idea how to solve this under the environment described
> > above, I'd appreciate if you could share them with me.
> >
> > Thanks in advance
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
> >
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>


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




RE: ApplicationResources.properties not reloading added keys

2002-11-26 Thread Alvarado, Juan (c)
The way I'm working is as follows:

We have an ant task that will build an ear file.
What we then do is through some ant tasks, extract the ear file into the
deploy folder of jboss. Another task then extracts the war file into the
deploy folder also. So what I end up with is as follows:

$JBOSS_DEPLOY_DIRECTORY/$EAR_DIRECTORY
$JBOSS_DEPLOY_DIRECTORY/$WAR_DIRECTORY

Inside the $EAR_DIRECTORY is your typical J2EE stuff, and inside the
$WAR_DIRECTORY is the web-app.

Whenever I make a change to the properties file, I have an ant task that
will touch the web.xml of the web-app, but this doesn't work. Shutting down
and restarting jboss from scratch does not do the trick either. Pretty
weird

Thanks for the quick reply.

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 4:14 PM
To: Struts Users Mailing List
Subject: RE: ApplicationResources.properties not reloading added keys


Please describe how you are working

a, b, c, or some other way:

a) building .war and deploy/redeploy
b) changing the files in place (I don't think this is possible)
c) working right in the deploy directory

If a, are you sure you are not adding it to the .properties that gets
overwritten when building?
If c, the app will not redeploy itself when a property file changes (at
least
not last time I checked)



--
James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org

"If you were plowing a field, which would you rather use? Two strong oxen or
1024 chickens?"
- Seymour Cray (1925-1996), father of supercomputing


> -Original Message-
> From: Alvarado, Juan (c) [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 26, 2002 4:04 PM
> To: '[EMAIL PROTECTED]'
> Subject: ApplicationResources.properties not reloading added keys
>
>
> Hi:
>
> I am using jboss-3.03 with tomcat 4.05 and I cannot get my
> ApplicationResources.properties to display newly added keys. I have
> restarted jboss and still no luck. All I get is a message like this:
> ???en_US.prompt.application.url???
> I know that the file ApplicationResources.properties  is under
> WEB-INF/classes and it does have the prompt.application.url key.
>
> If anyone has any idea how to solve this under the environment described
> above, I'd appreciate if you could share them with me.
>
> Thanks in advance
>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


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




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




RE: ApplicationResources.properties not reloading added keys

2002-11-26 Thread James Mitchell
Please describe how you are working

a, b, c, or some other way:

a) building .war and deploy/redeploy
b) changing the files in place (I don't think this is possible)
c) working right in the deploy directory

If a, are you sure you are not adding it to the .properties that gets
overwritten when building?
If c, the app will not redeploy itself when a property file changes (at least
not last time I checked)



--
James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org

"If you were plowing a field, which would you rather use? Two strong oxen or
1024 chickens?"
- Seymour Cray (1925-1996), father of supercomputing


> -Original Message-
> From: Alvarado, Juan (c) [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 26, 2002 4:04 PM
> To: '[EMAIL PROTECTED]'
> Subject: ApplicationResources.properties not reloading added keys
>
>
> Hi:
>
> I am using jboss-3.03 with tomcat 4.05 and I cannot get my
> ApplicationResources.properties to display newly added keys. I have
> restarted jboss and still no luck. All I get is a message like this:
> ???en_US.prompt.application.url???
> I know that the file ApplicationResources.properties  is under
> WEB-INF/classes and it does have the prompt.application.url key.
>
> If anyone has any idea how to solve this under the environment described
> above, I'd appreciate if you could share them with me.
>
> Thanks in advance
>
>
>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>


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




ApplicationResources.properties not reloading added keys

2002-11-26 Thread Alvarado, Juan (c)
Hi:

I am using jboss-3.03 with tomcat 4.05 and I cannot get my
ApplicationResources.properties to display newly added keys. I have
restarted jboss and still no luck. All I get is a message like this:
???en_US.prompt.application.url???
I know that the file ApplicationResources.properties  is under
WEB-INF/classes and it does have the prompt.application.url key.

If anyone has any idea how to solve this under the environment described
above, I'd appreciate if you could share them with me.

Thanks in advance




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




Re: Question! ApplicationResources.properties file

2002-11-19 Thread Jana Navaneethan
Hi David,
  Thanks for your help!. I have to support two Languages English
and French hence I have two properties file one is default
ApplicationResources.properties and the other is
ApplicationResources_fr.properties for French, I know that STRUTS Action
Servlet will load the proper properties file based on the User Locale. My
questions is that, If I have 4 different properties file how is it possible
to load the correct one based on the Language? For example I have
ApplicationResources1.properties, ApplicationResources2.properties and  two
files for French say ApplicationResources1_fr.properties
ApplicationResources2_fr.properties  How do I select the appropriate
properties file?

Thanks,
Jana.


- Original Message -
From: "David Graham" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 19, 2002 2:47 PM
Subject: Re: Question! ApplicationResources.properties file


> You never need to specify a language specific file.  You can break up your
> messages into different bundles and use the bundle attribute jstl and
struts
> messaging tags to select it.  Struts will select the correct language for
> you, you just need to tell it which bundle to use.
>
> David
>
>
>
>
>
>
> >From: "Jana Navaneethan" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Subject: Question! ApplicationResources.properties file
> >Date: Tue, 19 Nov 2002 14:32:17 -0500
> >
> >Hi,
> > I have a multi-lingual application, Which uses STRUTS 1.0.2. I
> >have
> >an ApplicationResources.properties file which has more than 600 lines of
> >code. Is it good to have one large properties file? Or Can I split it
into
> >multiple properties file? Which is the best approach? in terms of memory
> >and
> >speed. If I want to use multiple properties file I know I have to use
> >bundles and Key is it supported in 1.0.2? and how do I select Language
> >specific properties file in case of multiple properties files? Any
thoughts
> >would be greatly appreciated!
> >
> >Thanks,
> >Jana.
> >
> >
> >--
> >To unsubscribe, e-mail:
> ><mailto:[EMAIL PROTECTED]>
> >For additional commands, e-mail:
> ><mailto:[EMAIL PROTECTED]>
>
>
> _
> Help STOP SPAM with the new MSN 8 and get 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


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




Re: Question! ApplicationResources.properties file

2002-11-19 Thread David Graham
You never need to specify a language specific file.  You can break up your 
messages into different bundles and use the bundle attribute jstl and struts 
messaging tags to select it.  Struts will select the correct language for 
you, you just need to tell it which bundle to use.

David






From: "Jana Navaneethan" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Question! ApplicationResources.properties file
Date: Tue, 19 Nov 2002 14:32:17 -0500

Hi,
I have a multi-lingual application, Which uses STRUTS 1.0.2. I 
have
an ApplicationResources.properties file which has more than 600 lines of
code. Is it good to have one large properties file? Or Can I split it into
multiple properties file? Which is the best approach? in terms of memory 
and
speed. If I want to use multiple properties file I know I have to use
bundles and Key is it supported in 1.0.2? and how do I select Language
specific properties file in case of multiple properties files? Any thoughts
would be greatly appreciated!

Thanks,
Jana.


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


_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail


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



Question! ApplicationResources.properties file

2002-11-19 Thread Jana Navaneethan
Hi,
I have a multi-lingual application, Which uses STRUTS 1.0.2. I have
an ApplicationResources.properties file which has more than 600 lines of
code. Is it good to have one large properties file? Or Can I split it into
multiple properties file? Which is the best approach? in terms of memory and
speed. If I want to use multiple properties file I know I have to use
bundles and Key is it supported in 1.0.2? and how do I select Language
specific properties file in case of multiple properties files? Any thoughts
would be greatly appreciated!

Thanks,
Jana.


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




Location of ApplicationResources.properties file

2002-10-30 Thread Hohlen, John
Is there a preferred location for the "ApplicationResources.properties"
file?  Does it matter whether I placed it in:

1) WEB-INF/classes
2) WEB-INF/classes/com.abc.project

I realize whatever the location, I have fully qualify it in my web.xml file.
I was just wondering if one location is better than the other?  I prefer
option 1 because it's easier to traverse to.  My co-worker prefers option 2,
which is also the approach used by the Struts example application.

BTW, I searched the archives and didn't see a direct answer to this
question.

Thanks!

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




ApplicationResources.properties Size limit

2002-10-16 Thread Smith, Johnathan M.

Does anyone know a size limit with the ApplicationResources.properties?? We
are thinking about making some properties about 1k in size and we will have
a number of them?


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




Re: Problem reading ApplicationResources.properties..

2002-10-08 Thread Eddie Bush

The constructor for ActionError expects you to give it the key it will 
use to lookup the resource.  I honestly doubt e.getMessage() is 
providing you with an accurate key :-)  You probably want something like:

... new ActionError("exception.key", e.getMessage());

Sorry, I didn't actually look at your code the first time :-(  It sounds 
like your properties file is in the right spot - I wouldn't put it into 
the shared "$TC/common/classes" directory.  You could verify the 
resources are being loaded by doing a .  It 
looks like you're just misusing them though - but try the 
 if you continue to have problems.  Just add a "junk" key 
like:

test.key=Hi - This came from my properties file!

then ...



If that won't show up you aren't loading your resources.  If it does, 
you have other problems (resources aren't being loaded for some reason).

Sam MacCutchan wrote:

>Hi Eddie,
>
>I am using Struts 1.0.2, so I belive that I do have the configuration file 
>correct. When you say "top level classes directory" do you mean 
>$TOMCAT_HOME/common/classes or $TOMCAT_HOME/webapps/appname/WEB_INF/classes 
>??
>
>Right now it is in the second one..
>
>-Sam
>

-- 
Eddie Bush




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Problem reading ApplicationResources.properties..

2002-10-08 Thread Sam MacCutchan

Hi Eddie,

I am using Struts 1.0.2, so I belive that I do have the configuration file 
correct. When you say "top level classes directory" do you mean 
$TOMCAT_HOME/common/classes or $TOMCAT_HOME/webapps/appname/WEB_INF/classes 
??

Right now it is in the second one..

-Sam

-Original Message-
From:   Eddie Bush [SMTP:[EMAIL PROTECTED]]
Sent:   October 7, 2002 11:55 PM
To: Struts Users Mailing List
Subject:Re: Problem reading ApplicationResources.properties..

Eddie Bush wrote:

> Are you running Struts version 1.0 or Struts version 1.1 bx?  In 1.1,
> you specify your resources as you have noted - in 1.1 you specify them
> differently.  An example would be:

I'm sorry - that should read:  "In 1.0, you specify your resources as
you have noted ..."

>   parameter="com.foo.config.ModuleResources"/>
>
> ... or, for your exact case:
>
>   parameter="EprojectsResources"/>
>
> That should be after the action-mappings section.  If you're not using
> 1.1 I'm not quite sure what to tell you - I believe you have it listed
> correctly (assuming you have the properties file in your top-level
> classes directory)
>
> [EMAIL PROTECTED] wrote:
>
>> Hello all,
>>
>> I am having some trouble with my struts application.. It doesn't seem
>> to be
>> reading the ApplicationResources.properties file and when my Actions
>> generate
>> errors all I get from the output of my  tag is "null
>> null".
>
Sorry for any confusion my inability to type caused!

--
Eddie Bush




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


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




RE: Problem reading ApplicationResources.properties..

2002-10-08 Thread Sam MacCutchan

Hi Eddie,

I am using Struts 1.0.2, so I belive that I do have the configuration file 
correct. When you say "top level classes directory" do you mean 
$TOMCAT_HOME/common/classes or $TOMCAT_HOME/webapps/appname/WEB_INF/classes 
??

Right now it is in the second one..

-Sam

-Original Message-
From:   Eddie Bush [SMTP:[EMAIL PROTECTED]]
Sent:   October 7, 2002 11:55 PM
To: Struts Users Mailing List
Subject:Re: Problem reading ApplicationResources.properties..

Eddie Bush wrote:

> Are you running Struts version 1.0 or Struts version 1.1 bx?  In 1.1,
> you specify your resources as you have noted - in 1.1 you specify them
> differently.  An example would be:

I'm sorry - that should read:  "In 1.0, you specify your resources as
you have noted ..."

>   parameter="com.foo.config.ModuleResources"/>
>
> ... or, for your exact case:
>
>   parameter="EprojectsResources"/>
>
> That should be after the action-mappings section.  If you're not using
> 1.1 I'm not quite sure what to tell you - I believe you have it listed
> correctly (assuming you have the properties file in your top-level
> classes directory)
>
> [EMAIL PROTECTED] wrote:
>
>> Hello all,
>>
>> I am having some trouble with my struts application.. It doesn't seem
>> to be
>> reading the ApplicationResources.properties file and when my Actions
>> generate
>> errors all I get from the output of my  tag is "null
>> null".
>
Sorry for any confusion my inability to type caused!

--
Eddie Bush




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


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




RE: Problem reading ApplicationResources.properties..

2002-10-08 Thread Galbreath, Mark

You don't seem to have defined your resources file in your
struts-config.xml:



Have you done this?

Mark

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 07, 2002 9:23 PM


Hello again continuation from my previous message, hit the wrong button..



my EngJobBO.updateEngJob(engJob):

public void updateEngJob(EngJob engJob)
  throws EngJobException {

  validate(engJob);

  Connection con = null;

  try {
con = pool.getConnection();

EngJobDAO engJobDAO = new EngJobDAO(con);
engJobDAO.update(engJob);

con.commit();
  } catch(Exception e) {
try {
  if(con != null) {
con.rollback();
throw new EngJobException(e.getMessage());
  }
} catch(SQLException sqle) {
  sqle.printStackTrace();
  throw new RuntimeException("error.unexpected");
}
  } finally {
try {
  if(con != null) {
con.close();
  }
} catch(SQLException sqlee) {
  sqlee.printStackTrace();
  throw new RuntimeException("error.unexpected");
}
  }
}

I hope that I have included enough information that someone can actually
suggest
some solutions.. It is really annoying this is the final bug in my program
and
the fact that the error is not displaying a usefull error message is driving
me
crazy!

Thanks for your time and any suggestions you might have..

Sam MacCutchan
Jr. Business Systems Analyst
Sinclair Technologies Inc.




--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Problem reading ApplicationResources.properties..

2002-10-07 Thread Eddie Bush

Eddie Bush wrote:

> Are you running Struts version 1.0 or Struts version 1.1 bx?  In 1.1, 
> you specify your resources as you have noted - in 1.1 you specify them 
> differently.  An example would be: 

I'm sorry - that should read:  "In 1.0, you specify your resources as 
you have noted ..."

>   parameter="com.foo.config.ModuleResources"/>
>
> ... or, for your exact case:
>
>   parameter="EprojectsResources"/>
>
> That should be after the action-mappings section.  If you're not using 
> 1.1 I'm not quite sure what to tell you - I believe you have it listed 
> correctly (assuming you have the properties file in your top-level 
> classes directory)
>
> [EMAIL PROTECTED] wrote:
>
>> Hello all,
>>
>> I am having some trouble with my struts application.. It doesn't seem 
>> to be
>> reading the ApplicationResources.properties file and when my Actions 
>> generate
>> errors all I get from the output of my  tag is "null 
>> null". 
>
Sorry for any confusion my inability to type caused!

-- 
Eddie Bush




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




Re: Problem reading ApplicationResources.properties..

2002-10-07 Thread Eddie Bush

Are you running Struts version 1.0 or Struts version 1.1 bx?  In 1.1, 
you specify your resources as you have noted - in 1.1 you specify them 
differently.  An example would be:

  

... or, for your exact case:

  

That should be after the action-mappings section.  If you're not using 
1.1 I'm not quite sure what to tell you - I believe you have it listed 
correctly (assuming you have the properties file in your top-level 
classes directory)

[EMAIL PROTECTED] wrote:

>Hello all,
>
>I am having some trouble with my struts application.. It doesn't seem to be
>reading the ApplicationResources.properties file and when my Actions generate
>errors all I get from the output of my  tag is "null null".
>

-- 
Eddie Bush




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




Problem reading ApplicationResources.properties..

2002-10-07 Thread smaccutchan


Hello again continuation from my previous message, hit the wrong button..



my EngJobBO.updateEngJob(engJob):

public void updateEngJob(EngJob engJob)
  throws EngJobException {

  validate(engJob);

  Connection con = null;

  try {
con = pool.getConnection();

EngJobDAO engJobDAO = new EngJobDAO(con);
engJobDAO.update(engJob);

con.commit();
  } catch(Exception e) {
try {
  if(con != null) {
con.rollback();
throw new EngJobException(e.getMessage());
  }
} catch(SQLException sqle) {
  sqle.printStackTrace();
  throw new RuntimeException("error.unexpected");
}
  } finally {
try {
  if(con != null) {
con.close();
  }
} catch(SQLException sqlee) {
  sqlee.printStackTrace();
  throw new RuntimeException("error.unexpected");
}
  }
}

I hope that I have included enough information that someone can actually suggest
some solutions.. It is really annoying this is the final bug in my program and
the fact that the error is not displaying a usefull error message is driving me
crazy!

Thanks for your time and any suggestions you might have..

Sam MacCutchan
Jr. Business Systems Analyst
Sinclair Technologies Inc.




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Problem reading ApplicationResources.properties..

2002-10-07 Thread smaccutchan

Hello all,

I am having some trouble with my struts application.. It doesn't seem to be
reading the ApplicationResources.properties file and when my Actions generate
errors all I get from the output of my  tag is "null null".

Here is a portion from my web.xml:


  action
  org.apache.struts.action.ActionServlet
  
application
EprojectsResources
  
  
config
/WEB-INF/struts-config.xml
  
  2


My EprojectsResources.properties file lives in
$TOMCAT_HOME/webapps/eprojects/WEB-INF/classes

My struts-config.xml:


  

  

  

 



 



  



(I ommitted the action mapping for listAllProjects.do to save typing, but it is
there)

The action that is returning the "null null" is the updateEngJob action..
Basically I can list the projects and edit them, but when I submit the form the
updateEngJob action returns the error "null null"

Some code from my UpdateEngJobAction.java class file:

import net.sinctech.eprojects.entity.EngJob;

public class UpdateEngJobAction extends Action {
  public ActionForward perform(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
  throws IOException, ServletException {

ActionErrors errors = new ActionErrors();

try {
  EngJobBO engJobBO = new EngJobBO();
  EngJob engJob = (EngJob)form;
  engJobBO.updateEngJob(engjob);

  return mapping.findForward("success");
} catch(Throwable e) {
  e.printStackTrace();
  ActionError error = new ActionError(e.getMessage());
  errors.add(ActionErrors.GLOBAL_ERROR, error);
}
saveErrors(request, errors);
return new ActionForward(mapping.getInput());
  }
}

my EngJobBO.updateEngJob(engJob):

public void updateEngJob(EngJob engJob)
  throws EngJobException {

  validate(engJob);

  Connection con = null;

  try {
con = pool.getConnection();

EngJobDAO engJobDAO = new EngJobDAO(con);
engJobDAO.update(engJob);

con.commit();
  } catch(Exception e) {
try {
  if(con != null) {
con.rollback();
throw new EngJobException(e.getMessage());
  }
} catch(SQLException sqle) {




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




RE: dynamic use of ApplicationResources.properties

2002-09-24 Thread Bartley, Chris P [PCS]

The Action class has a getResources() method you can use to get the
MessageResources.

> -Original Message-
> From: Mark Silva [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 24, 2002 1:53 PM
> To: Struts Users Mailing List
> Subject: RE: dynamic use of ApplicationResources.properties
> 
> 
> no i want to get the message in the Action class.  not in the jsp.
> 
> -Original Message-
> From: Eddie Bush [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 23, 2002 5:25 PM
> To: Struts Users Mailing List
> Subject: Re: dynamic use of ApplicationResources.properties
> 
> 
> You're not looking for  are you?  
> Sounds like it, 
> but I could be *way* off ...
> 
> Mark Silva wrote:
> 
> >hello again,
> >
> >is there any way to dyanmically use 
> ApplicationResources.properties in an Action class?  what i 
> mean is that i want to Select a message from the Action 
> class, and pass that message to the jsp.  this will allow me 
> to have a much more generic page... i wont be ties to putting 
> the message type on the page, but create it at run time.
> >
> >thanks,
> >mark
> >
> 
> -- 
> Eddie Bush
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


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

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




RE: dynamic use of ApplicationResources.properties

2002-09-24 Thread Mark Silva

no i want to get the message in the Action class.  not in the jsp.

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 23, 2002 5:25 PM
To: Struts Users Mailing List
Subject: Re: dynamic use of ApplicationResources.properties


You're not looking for  are you?  Sounds like it, 
but I could be *way* off ...

Mark Silva wrote:

>hello again,
>
>is there any way to dyanmically use ApplicationResources.properties in an Action 
>class?  what i mean is that i want to Select a message from the Action class, and 
>pass that message to the jsp.  this will allow me to have a much more generic page... 
>i wont be ties to putting the message type on the page, but create it at run time.
>
>thanks,
>mark
>

-- 
Eddie Bush




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


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




Re: dynamic use of ApplicationResources.properties

2002-09-23 Thread Eddie Bush

You're not looking for  are you?  Sounds like it, 
but I could be *way* off ...

Mark Silva wrote:

>hello again,
>
>is there any way to dyanmically use ApplicationResources.properties in an Action 
>class?  what i mean is that i want to Select a message from the Action class, and 
>pass that message to the jsp.  this will allow me to have a much more generic page... 
>i wont be ties to putting the message type on the page, but create it at run time.
>
>thanks,
>mark
>

-- 
Eddie Bush




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




dynamic use of ApplicationResources.properties

2002-09-23 Thread Mark Silva

hello again,

is there any way to dyanmically use ApplicationResources.properties in an Action 
class?  what i mean is that i want to Select a message from the Action class, and pass 
that message to the jsp.  this will allow me to have a much more generic page... i 
wont be ties to putting the message type on the page, but create it at run time.

thanks,
mark


-Original Message-
From: Martin Cooper [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 23, 2002 5:03 PM
To: 'Struts Users Mailing List'
Subject: RE: Struts vs. JSTL for i18n




> -Original Message-
> From: Matt Raible [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 23, 2002 4:22 PM
> To: [EMAIL PROTECTED];
> [EMAIL PROTECTED]
> Subject: Struts vs. JSTL for i18n
> 
> 
> It seems that Struts makes it much easier to do i18n than 
> JSTL.  Please
> correct me if I'm wrong.
> 
> Struts = 
> 
> JSTL = 
>   
>
>   

There's a distinction here that you are missing, I think. In the Struts
case, you are taking advantage of your Struts configuration, which causes
Struts to load your resource bundles. When using JSTL, you can preload the
bundles as well, so the JSP code is almost the same.

For the default bundle, you might have:

Struts = 
JSTL = 

With a non-default bundle, you might have:

Struts = 
JSTL = 

With JSTL, you'll have to make the bundles available yourself, but once
that's done, you can take your pick over which set of tags to use.

--
Martin Cooper


> 
> Thanks,
> 
> Matt
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 
> 


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


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




RE: [Announce] [New Extension] ApplicationResources.properties fr om Database

2002-09-11 Thread James Mitchell

I've already started on this.  I'll let you know.

James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




> -Original Message-
> From: Juraj Lenharcik [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 11, 2002 8:16 AM
> To: 'Struts Users Mailing List'
> Subject: AW: [Announce] [New Extension] ApplicationResources.properties
> fr om Database
>
>
> I would be interessted; Whats about XMLRessources? ;-)
>
> -Ursprüngliche Nachricht-
> Von: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 11. September 2002 14:07
> An: 'Struts Users Mailing List'
> Betreff: RE: [Announce] [New Extension] ApplicationResources.properties
> fr om Database
>
>
> Cool.  I wrote a generic class to turn any key-value properties
> strings in a
> database table into a java.util.Properties object.  If anybody's
> interested,
> I can make that available as well.
>
> Mark
>
> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 11, 2002 12:55 AM
> To: Struts Users Mailing List
> Subject: RE: [Announce] [New Extension] ApplicationResources.properties
> from Database
>
>
> Sorry for the delay.  I've decided to post this on our website.
>
> Please feel free to download and try it out.
>
>  http://www.open-tools.org/struts-atlanta/downloads/DBMessageResources
>
> If for some reason the site goes down, just send me an email and
> I'll get it
> to you.
>
>
>
>
> James Mitchell
> Software Engineer\Struts Evangelist
> Struts-Atlanta, the "Open Minded Developer Network"
> http://www.open-tools.org/struts-atlanta
>
>
>
>
> > -Original Message-
> > From: James Mitchell [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, September 10, 2002 3:06 PM
> > To: Struts Users Mailing List
> > Subject: [Announce] [New Extension] ApplicationResources.properties from
> > Database
> >
> >
> > For anyone interested, I have finished implementing DBMessageResources
> > which allows you to keep the key-value pairs (from your
> > ApplicationResources.properties) in a single database table.
> >
> > You can load your property files into a table (generic schema
> is provided)
> > and with this extension, by only modifying  in the
> > struts-config.xml your application will run WITHOUT ANY code
> changes. (See
> > the readme.txt file included)
> >
> > This extension uses OJB (http://jakarta.apache.org/ojb) O/R mapping for
> > database configuration and connection pool management.
> >
> > I have included a modified version of the (1.1b2) struts-example to
> > demonstrate.
> >
> > I have tested this with Struts 1.1b2, and I'm sure it will work
> with 1.1b1
> > (If anyone requires a 1.0.x compatible, I can look at that also)
> >
> > I will get this project available as soon as I work through some
> > cvs issues
> > on sf.net:
> >
> > If anyone is REALLY itching to get their hands on it sooner, send me a
> > email.
> >
> > For those who were waiting, thanks for your patience.
> >
> >
> > James Mitchell
> > Software Engineer\Struts Evangelist
> > Struts-Atlanta, the "Open Minded Developer Network"
> > http://www.open-tools.org/struts-atlanta
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> >
> >
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



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




AW: [Announce] [New Extension] ApplicationResources.properties fr om Database

2002-09-11 Thread Juraj Lenharcik

with this link:
http://www.open-tools.org/struts-atlanta/downloads/DBMessageResources

-Ursprüngliche Nachricht-
Von: Juraj Lenharcik [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 11. September 2002 14:34
An: 'Struts Users Mailing List'
Betreff: AW: [Announce] [New Extension] ApplicationResources.properties
fr om Database


I had some OCR Exceptions on unpacking the zip...

-Ursprüngliche Nachricht-
Von: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 11. September 2002 14:34
An: 'Struts Users Mailing List'
Betreff: RE: [Announce] [New Extension] ApplicationResources.properties
fr om Database


Okay, I put the source in www.dirtroad.net/computer-programmer.  Open source
- hope you find it useful.

Mark

-Original Message-
From: Juraj Lenharcik [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 8:16 AM
To: 'Struts Users Mailing List'
Subject: AW: [Announce] [New Extension] ApplicationResources.properties
fr om Database


I would be interessted; Whats about XMLRessources? ;-)

-Ursprüngliche Nachricht-
Von: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 11. September 2002 14:07
An: 'Struts Users Mailing List'
Betreff: RE: [Announce] [New Extension] ApplicationResources.properties
fr om Database


Cool.  I wrote a generic class to turn any key-value properties strings in a
database table into a java.util.Properties object.  If anybody's interested,
I can make that available as well.

Mark

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 12:55 AM
To: Struts Users Mailing List
Subject: RE: [Announce] [New Extension] ApplicationResources.properties
from Database


Sorry for the delay.  I've decided to post this on our website.

Please feel free to download and try it out.

 http://www.open-tools.org/struts-atlanta/downloads/DBMessageResources

If for some reason the site goes down, just send me an email and I'll get it
to you.




James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 10, 2002 3:06 PM
> To: Struts Users Mailing List
> Subject: [Announce] [New Extension] ApplicationResources.properties from
> Database
>
>
> For anyone interested, I have finished implementing DBMessageResources
> which allows you to keep the key-value pairs (from your
> ApplicationResources.properties) in a single database table.
>
> You can load your property files into a table (generic schema is provided)
> and with this extension, by only modifying  in the
> struts-config.xml your application will run WITHOUT ANY code changes. (See
> the readme.txt file included)
>
> This extension uses OJB (http://jakarta.apache.org/ojb) O/R mapping for
> database configuration and connection pool management.
>
> I have included a modified version of the (1.1b2) struts-example to
> demonstrate.
>
> I have tested this with Struts 1.1b2, and I'm sure it will work with 1.1b1
> (If anyone requires a 1.0.x compatible, I can look at that also)
>
> I will get this project available as soon as I work through some
> cvs issues
> on sf.net:
>
> If anyone is REALLY itching to get their hands on it sooner, send me a
> email.
>
> For those who were waiting, thanks for your patience.
>
>
> James Mitchell
> Software Engineer\Struts Evangelist
> Struts-Atlanta, the "Open Minded Developer Network"
> http://www.open-tools.org/struts-atlanta
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>


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

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

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

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

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

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




AW: [Announce] [New Extension] ApplicationResources.properties fr om Database

2002-09-11 Thread Juraj Lenharcik

I had some OCR Exceptions on unpacking the zip...

-Ursprüngliche Nachricht-
Von: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 11. September 2002 14:34
An: 'Struts Users Mailing List'
Betreff: RE: [Announce] [New Extension] ApplicationResources.properties
fr om Database


Okay, I put the source in www.dirtroad.net/computer-programmer.  Open source
- hope you find it useful.

Mark

-Original Message-
From: Juraj Lenharcik [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 8:16 AM
To: 'Struts Users Mailing List'
Subject: AW: [Announce] [New Extension] ApplicationResources.properties
fr om Database


I would be interessted; Whats about XMLRessources? ;-)

-Ursprüngliche Nachricht-
Von: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 11. September 2002 14:07
An: 'Struts Users Mailing List'
Betreff: RE: [Announce] [New Extension] ApplicationResources.properties
fr om Database


Cool.  I wrote a generic class to turn any key-value properties strings in a
database table into a java.util.Properties object.  If anybody's interested,
I can make that available as well.

Mark

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 12:55 AM
To: Struts Users Mailing List
Subject: RE: [Announce] [New Extension] ApplicationResources.properties
from Database


Sorry for the delay.  I've decided to post this on our website.

Please feel free to download and try it out.

 http://www.open-tools.org/struts-atlanta/downloads/DBMessageResources

If for some reason the site goes down, just send me an email and I'll get it
to you.




James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 10, 2002 3:06 PM
> To: Struts Users Mailing List
> Subject: [Announce] [New Extension] ApplicationResources.properties from
> Database
>
>
> For anyone interested, I have finished implementing DBMessageResources
> which allows you to keep the key-value pairs (from your
> ApplicationResources.properties) in a single database table.
>
> You can load your property files into a table (generic schema is provided)
> and with this extension, by only modifying  in the
> struts-config.xml your application will run WITHOUT ANY code changes. (See
> the readme.txt file included)
>
> This extension uses OJB (http://jakarta.apache.org/ojb) O/R mapping for
> database configuration and connection pool management.
>
> I have included a modified version of the (1.1b2) struts-example to
> demonstrate.
>
> I have tested this with Struts 1.1b2, and I'm sure it will work with 1.1b1
> (If anyone requires a 1.0.x compatible, I can look at that also)
>
> I will get this project available as soon as I work through some
> cvs issues
> on sf.net:
>
> If anyone is REALLY itching to get their hands on it sooner, send me a
> email.
>
> For those who were waiting, thanks for your patience.
>
>
> James Mitchell
> Software Engineer\Struts Evangelist
> Struts-Atlanta, the "Open Minded Developer Network"
> http://www.open-tools.org/struts-atlanta
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>


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

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

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

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

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




RE: [Announce] [New Extension] ApplicationResources.properties fr om Database

2002-09-11 Thread Galbreath, Mark

Okay, I put the source in www.dirtroad.net/computer-programmer.  Open source
- hope you find it useful.

Mark

-Original Message-
From: Juraj Lenharcik [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 8:16 AM
To: 'Struts Users Mailing List'
Subject: AW: [Announce] [New Extension] ApplicationResources.properties
fr om Database


I would be interessted; Whats about XMLRessources? ;-)

-Ursprüngliche Nachricht-
Von: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 11. September 2002 14:07
An: 'Struts Users Mailing List'
Betreff: RE: [Announce] [New Extension] ApplicationResources.properties
fr om Database


Cool.  I wrote a generic class to turn any key-value properties strings in a
database table into a java.util.Properties object.  If anybody's interested,
I can make that available as well.

Mark

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 12:55 AM
To: Struts Users Mailing List
Subject: RE: [Announce] [New Extension] ApplicationResources.properties
from Database


Sorry for the delay.  I've decided to post this on our website.

Please feel free to download and try it out.

 http://www.open-tools.org/struts-atlanta/downloads/DBMessageResources

If for some reason the site goes down, just send me an email and I'll get it
to you.




James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 10, 2002 3:06 PM
> To: Struts Users Mailing List
> Subject: [Announce] [New Extension] ApplicationResources.properties from
> Database
>
>
> For anyone interested, I have finished implementing DBMessageResources
> which allows you to keep the key-value pairs (from your
> ApplicationResources.properties) in a single database table.
>
> You can load your property files into a table (generic schema is provided)
> and with this extension, by only modifying  in the
> struts-config.xml your application will run WITHOUT ANY code changes. (See
> the readme.txt file included)
>
> This extension uses OJB (http://jakarta.apache.org/ojb) O/R mapping for
> database configuration and connection pool management.
>
> I have included a modified version of the (1.1b2) struts-example to
> demonstrate.
>
> I have tested this with Struts 1.1b2, and I'm sure it will work with 1.1b1
> (If anyone requires a 1.0.x compatible, I can look at that also)
>
> I will get this project available as soon as I work through some
> cvs issues
> on sf.net:
>
> If anyone is REALLY itching to get their hands on it sooner, send me a
> email.
>
> For those who were waiting, thanks for your patience.
>
>
> James Mitchell
> Software Engineer\Struts Evangelist
> Struts-Atlanta, the "Open Minded Developer Network"
> http://www.open-tools.org/struts-atlanta
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>


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

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

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

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




AW: [Announce] [New Extension] ApplicationResources.properties fr om Database

2002-09-11 Thread Juraj Lenharcik

I would be interessted; Whats about XMLRessources? ;-)

-Ursprüngliche Nachricht-
Von: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 11. September 2002 14:07
An: 'Struts Users Mailing List'
Betreff: RE: [Announce] [New Extension] ApplicationResources.properties
fr om Database


Cool.  I wrote a generic class to turn any key-value properties strings in a
database table into a java.util.Properties object.  If anybody's interested,
I can make that available as well.

Mark

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 12:55 AM
To: Struts Users Mailing List
Subject: RE: [Announce] [New Extension] ApplicationResources.properties
from Database


Sorry for the delay.  I've decided to post this on our website.

Please feel free to download and try it out.

 http://www.open-tools.org/struts-atlanta/downloads/DBMessageResources

If for some reason the site goes down, just send me an email and I'll get it
to you.




James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 10, 2002 3:06 PM
> To: Struts Users Mailing List
> Subject: [Announce] [New Extension] ApplicationResources.properties from
> Database
>
>
> For anyone interested, I have finished implementing DBMessageResources
> which allows you to keep the key-value pairs (from your
> ApplicationResources.properties) in a single database table.
>
> You can load your property files into a table (generic schema is provided)
> and with this extension, by only modifying  in the
> struts-config.xml your application will run WITHOUT ANY code changes. (See
> the readme.txt file included)
>
> This extension uses OJB (http://jakarta.apache.org/ojb) O/R mapping for
> database configuration and connection pool management.
>
> I have included a modified version of the (1.1b2) struts-example to
> demonstrate.
>
> I have tested this with Struts 1.1b2, and I'm sure it will work with 1.1b1
> (If anyone requires a 1.0.x compatible, I can look at that also)
>
> I will get this project available as soon as I work through some
> cvs issues
> on sf.net:
>
> If anyone is REALLY itching to get their hands on it sooner, send me a
> email.
>
> For those who were waiting, thanks for your patience.
>
>
> James Mitchell
> Software Engineer\Struts Evangelist
> Struts-Atlanta, the "Open Minded Developer Network"
> http://www.open-tools.org/struts-atlanta
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>


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

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

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




RE: [Announce] [New Extension] ApplicationResources.properties from Database

2002-09-11 Thread Galbreath, Mark

Cool.  I wrote a generic class to turn any key-value properties strings in a
database table into a java.util.Properties object.  If anybody's interested,
I can make that available as well.

Mark

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 12:55 AM
To: Struts Users Mailing List
Subject: RE: [Announce] [New Extension] ApplicationResources.properties
from Database


Sorry for the delay.  I've decided to post this on our website.

Please feel free to download and try it out.

 http://www.open-tools.org/struts-atlanta/downloads/DBMessageResources

If for some reason the site goes down, just send me an email and I'll get it
to you.




James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 10, 2002 3:06 PM
> To: Struts Users Mailing List
> Subject: [Announce] [New Extension] ApplicationResources.properties from
> Database
>
>
> For anyone interested, I have finished implementing DBMessageResources
> which allows you to keep the key-value pairs (from your
> ApplicationResources.properties) in a single database table.
>
> You can load your property files into a table (generic schema is provided)
> and with this extension, by only modifying  in the
> struts-config.xml your application will run WITHOUT ANY code changes. (See
> the readme.txt file included)
>
> This extension uses OJB (http://jakarta.apache.org/ojb) O/R mapping for
> database configuration and connection pool management.
>
> I have included a modified version of the (1.1b2) struts-example to
> demonstrate.
>
> I have tested this with Struts 1.1b2, and I'm sure it will work with 1.1b1
> (If anyone requires a 1.0.x compatible, I can look at that also)
>
> I will get this project available as soon as I work through some
> cvs issues
> on sf.net:
>
> If anyone is REALLY itching to get their hands on it sooner, send me a
> email.
>
> For those who were waiting, thanks for your patience.
>
>
> James Mitchell
> Software Engineer\Struts Evangelist
> Struts-Atlanta, the "Open Minded Developer Network"
> http://www.open-tools.org/struts-atlanta
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>


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

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




RE: [Announce] [New Extension] ApplicationResources.properties from Database

2002-09-10 Thread James Mitchell

Sorry for the delay.  I've decided to post this on our website.

Please feel free to download and try it out.

 http://www.open-tools.org/struts-atlanta/downloads/DBMessageResources

If for some reason the site goes down, just send me an email and I'll get it
to you.




James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 10, 2002 3:06 PM
> To: Struts Users Mailing List
> Subject: [Announce] [New Extension] ApplicationResources.properties from
> Database
>
>
> For anyone interested, I have finished implementing DBMessageResources
> which allows you to keep the key-value pairs (from your
> ApplicationResources.properties) in a single database table.
>
> You can load your property files into a table (generic schema is provided)
> and with this extension, by only modifying  in the
> struts-config.xml your application will run WITHOUT ANY code changes. (See
> the readme.txt file included)
>
> This extension uses OJB (http://jakarta.apache.org/ojb) O/R mapping for
> database configuration and connection pool management.
>
> I have included a modified version of the (1.1b2) struts-example to
> demonstrate.
>
> I have tested this with Struts 1.1b2, and I'm sure it will work with 1.1b1
> (If anyone requires a 1.0.x compatible, I can look at that also)
>
> I will get this project available as soon as I work through some
> cvs issues
> on sf.net:
>
> If anyone is REALLY itching to get their hands on it sooner, send me a
> email.
>
> For those who were waiting, thanks for your patience.
>
>
> James Mitchell
> Software Engineer\Struts Evangelist
> Struts-Atlanta, the "Open Minded Developer Network"
> http://www.open-tools.org/struts-atlanta
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>


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




Re: [Announce] [New Extension] ApplicationResources.properties fromDatabase

2002-09-10 Thread Dylan van Iersel

Cool!! This was something I was planning on doing myself but didn't find
the time for it. I was thinking we can put the tiles definitions,
templates, layouts whatever in a database as well and have it
dynamically changed, on the fly as were. 

On Tue, 2002-09-10 at 21:05, James Mitchell wrote:

For anyone interested, I have finished implementing DBMessageResources
which allows you to keep the key-value pairs (from your
ApplicationResources.properties) in a single database table.

You can load your property files into a table (generic schema is provided)
and with this extension, by only modifying  in the
struts-config.xml your application will run WITHOUT ANY code changes. (See
the readme.txt file included)

This extension uses OJB (http://jakarta.apache.org/ojb) O/R mapping for
database configuration and connection pool management.

I have included a modified version of the (1.1b2) struts-example to
demonstrate.

I have tested this with Struts 1.1b2, and I'm sure it will work with 1.1b1
(If anyone requires a 1.0.x compatible, I can look at that also)

I will get this project available as soon as I work through some cvs issues
on sf.net:

If anyone is REALLY itching to get their hands on it sooner, send me a
email.

For those who were waiting, thanks for your patience.


James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta


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


Groeten, 

Dylan 

 
Dylan van Iersel 
E-mail:   [EMAIL PROTECTED]
Web: http://www.van-iersel.org
ICQ#:46244248 
 




[Announce] [New Extension] ApplicationResources.properties from Database

2002-09-10 Thread James Mitchell

For anyone interested, I have finished implementing DBMessageResources
which allows you to keep the key-value pairs (from your
ApplicationResources.properties) in a single database table.

You can load your property files into a table (generic schema is provided)
and with this extension, by only modifying  in the
struts-config.xml your application will run WITHOUT ANY code changes. (See
the readme.txt file included)

This extension uses OJB (http://jakarta.apache.org/ojb) O/R mapping for
database configuration and connection pool management.

I have included a modified version of the (1.1b2) struts-example to
demonstrate.

I have tested this with Struts 1.1b2, and I'm sure it will work with 1.1b1
(If anyone requires a 1.0.x compatible, I can look at that also)

I will get this project available as soon as I work through some cvs issues
on sf.net:

If anyone is REALLY itching to get their hands on it sooner, send me a
email.

For those who were waiting, thanks for your patience.


James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta


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




RE: [New Functionality] ApplicationResources.properties to DB?

2002-09-03 Thread Jason Rosen

Isn't dynamic loading of message resources at least half the reason that
people are interested in using a DB to host them?  I know that is a big
factor in my motivation.

-Original Message-
From: Peter A. J. Pilgrim [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 02, 2002 4:53 PM
To: Struts Users Mailing List
Subject: Re: [New Functionality] ApplicationResources.properties to DB?


Ian Vellosa wrote:
> But what do you do each time you add a new language, say German? you need
to
> update the database structure adding a new column? Surely any solution
> should be generic enough not to need that.
> 
> Unfortunately you would need the table to look something more like:
> 
> key   language  value
>     
> global.title  enSomething
> global.title  frquelque chose
> 
> but that will get huge in no time at all! and I doubt that performance
would
> be too good.
> 

Yes The db column design was wrong.

Well how many resources do have or do you need?


Surely you can read the message resource into memory java objects just once.
When you host the web application it is not going to have just 64MB more
like close to 1024 MB of RAM, man! Message Resources are almost singletons
anymore. Therefore you cache the message resource in memory and
do not query the database anymore
unless you really to have ``dynamic message resources''. Now there's
an idea that you can't do with the current static message resources ?


-- 
Peter Pilgrim +-\ +-+++++
Java Technologist | | | ||||| 'n' Shine
   |  O  | | ||  --+| ---+
 /\| ._  / | | \  \ ||
/  \   | | \ \ | |+--  || ---+ A new day
   /_  _\  "Up"| | | | | ||||| is coming
 ||+-+ +-+ +-+++++
http://www.xenonsoft.demon.co.uk/"; />


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

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




Re: [New Functionality] ApplicationResources.properties to DB?

2002-09-02 Thread Peter A. J. Pilgrim

Ian Vellosa wrote:
> But what do you do each time you add a new language, say German? you need to
> update the database structure adding a new column? Surely any solution
> should be generic enough not to need that.
> 
> Unfortunately you would need the table to look something more like:
> 
> key   language  value
>     
> global.title  enSomething
> global.title  frquelque chose
> 
> but that will get huge in no time at all! and I doubt that performance would
> be too good.
> 

Yes The db column design was wrong.

Well how many resources do have or do you need?


Surely you can read the message resource into memory java objects just once.
When you host the web application it is not going to have just 64MB more
like close to 1024 MB of RAM, man! Message Resources are almost singletons
anymore. Therefore you cache the message resource in memory and
do not query the database anymore
unless you really to have ``dynamic message resources''. Now there's
an idea that you can't do with the current static message resources ?


-- 
Peter Pilgrim +-\ +-+++++
Java Technologist | | | ||||| 'n' Shine
   |  O  | | ||  --+| ---+
 /\| ._  / | | \  \ ||
/  \   | | \ \ | |+--  || ---+ A new day
   /_  _\  "Up"| | | | | ||||| is coming
 ||+-+ +-+ +-+++++
http://www.xenonsoft.demon.co.uk/"; />


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [New Functionality] ApplicationResources.properties to DB?

2002-09-02 Thread Peter A. J. Pilgrim

J
> 
> Another interesting twist -- what if you are using data from the resource
> bundle to make your connectin to the database?  and now you are wanting to
> use JDBCMessageResourceshm.
> 
> What if you rely on another plugin as your persistence layer?
> How would ensure that it gets called first?
> 

Reading more than one message resource entity might solve the problem
as I said before.  The first message resource could be contain
the bootstraping (db configuration) that connects to the second (and third)
message resources? How the protocol will work I dont know,
probably be application dependent.

Just some ideas.


-- 
Peter Pilgrim +-\ +-+++++
Java Technologist | | | ||||| 'n' Shine
   |  O  | | ||  --+| ---+
 /\| ._  / | | \  \ ||
/  \   | | \ \ | |+--  || ---+ A new day
   /_  _\  "Up"| | | | | ||||| is coming
 ||+-+ +-+ +-+++++
http://www.xenonsoft.demon.co.uk/"; />


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [New Functionality] ApplicationResources.properties to DB?

2002-09-02 Thread Peter A. J. Pilgrim

Eddie Bush wrote:
> James Mitchell wrote:
> 
>> Sorry guys... for not responding earlier.
>>
> 
> 
> Sorry I should have filled you in, James.  I forwarded him the relevant 
> part of your discussion.
> 
>> Also, I'm not sure how many passes I would make over the list, you 
>> certainly
>> wouldn't want a circular reference.
>>
> 
> 
> Since we're talking about a database here:
> 
> Yes, you'd want to avoid circular references.  However, I wouldn't think 
> it would take more than a single pass through the view to churn out all 
> of your resources.  If you used the key as ... *drum roll* ... the key, 
> you could just look it up out of the database.  That's just my initial 
> impression ...
> 

Why not allow the user a choice between recursive and non-recursive
evaluation? It is possible to write code to check the
evaluations are less than a certain limit (say 15)

Has any one here ever programmed with the X Windows / OSF Motif kit mid
1990s?

In X Windows you merge X application resources. You may be want to consider
merging MessageResources?  May be reading the standard web resource and then
read message resources from a DB (or vice versa)?

-- 
Peter Pilgrim +-\ +-+++++
Java Technologist | | | ||||| 'n' Shine
   |  O  | | ||  --+| ---+
 /\| ._  / | | \  \ ||
/  \   | | \ \ | |+--  || ---+ A new day
   /_  _\  "Up"| | | | | ||||| is coming
 ||+-+ +-+ +-+++++
http://www.xenonsoft.demon.co.uk/"; />


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [New Functionality] ApplicationResources.properties to DB?

2002-08-30 Thread Galbreath, Mark

I thought about writing a db trigger and then decided to include a reload()
to manually refresh the data in the event of changes to the db.

Mark

-Original Message-
From: Jason Rosen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 29, 2002 4:23 PM
To: 'Struts Users Mailing List'
Subject: RE: [New Functionality] ApplicationResources.properties to DB?


I was actually hoping to have it implemented where the entire store would be
able to be updated on-the-fly and not have the application cache it on
initialization.  I would at least think that the MessageResources or
MessageResourceFactory implementation would have a reload() method so the
entire app didn't need to be reloaded
to update the cached properties.  This type of thing could even be
configurable (like Craig suggested).

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 29, 2002 12:25 PM
To: 'Struts Users Mailing List'
Subject: RE: [New Functionality] ApplicationResources.properties to DB?


My idea is to gather the properties into a static java.util.Properties
object from a call to a stored procedure and instantiate it in context scope
at application startup using the java -d argument to set the environment and
filename in the system properties.  The properties would then be available
to any calling method, same as if fetching from a textfile.

Mark

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 29, 2002 3:11 PM

I don't know how helpful that would be.  I love it for a persistence 
framework, but it seems like it might possibly be (mega-)over-kill for 
this task.  Although!  ... that would certainly take away any confusion 
about what the table/field names were (just map your classes to your 
tables)!  The down-side would be that, not only would you have to 
instantiate your bundle, but you'd also have to instantiate an object 
for *every single* key/value pair (that got used).

Regards,

Eddie

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

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

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




RE: [New Functionality] ApplicationResources.properties to DB?

2002-08-29 Thread Jason Rosen

The Locale inheritance functionality Craig is referring to is implemented in
PropertyMessageResources.getMessage(Locale locale, String key).

If all MessageResource implementations are expected to use this logic for
finding keys by Locale, maybe it should be documented in the
MessageResources abstract class so designers of inheriting classes are aware
that they need to implement it. (Not a slam on Craig, just a suggestion)

Jason

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 29, 2002 1:52 PM
To: Struts Users Mailing List
Subject: RE: [New Functionality] ApplicationResources.properties to DB?




On Thu, 29 Aug 2002, James Mitchell wrote:

> Date: Thu, 29 Aug 2002 16:36:30 -0400
> From: James Mitchell <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: RE: [New Functionality] ApplicationResources.properties to DB?
>
> Isn't this all done after the data is loaded?
>

Not if the data isn't loaded (i.e. cached)  :-)

Craig

> James Mitchell
> Software Engineer\Struts Evangelist
> Struts-Atlanta, the "Open Minded Developer Network"
> http://www.open-tools.org/struts-atlanta
>
>
>
>
> > -Original Message-
> > From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, August 29, 2002 4:17 PM
> > To: Struts Users Mailing List
> > Subject: RE: [New Functionality] ApplicationResources.properties to DB?
> >
> >
> >
> >
> > On Thu, 29 Aug 2002, Ian Vellosa wrote:
> >
> > > Date: Thu, 29 Aug 2002 21:54:10 +0200
> > > From: Ian Vellosa <[EMAIL PROTECTED]>
> > > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > > To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > > Subject: RE: [New Functionality] ApplicationResources.properties to
DB?
> > >
> > > But what do you do each time you add a new language, say
> > German? you need to
> > > update the database structure adding a new column? Surely any solution
> > > should be generic enough not to need that.
> > >
> > > Unfortunately you would need the table to look something more like:
> > >
> > > key   language  value
> > >     
> > > global.title  enSomething
> > > global.title  frquelque chose
> > >
> > > but that will get huge in no time at all! and I doubt that
> > performance would
> > > be too good.
> > >
> >
> > Performance shouldn't be an issue if you index on both key and language.
> >
> > Don't forget to implement the inheritance rules for Locales, such that
if
> > the user's Locale is "en_US" you search for language="en_US", then
> > language="en", then the default.
> >
> > Craig
> >
> >
> > >
> > > -Original Message-
> > > From: James Mitchell [mailto:[EMAIL PROTECTED]]
> > >
> > > > -Original Message-
> > > > From: Eddie Bush [mailto:[EMAIL PROTECTED]]
> > > >
> > > > James Mitchell wrote:
> > > >
> > > > >Sorry guys... for not responding earlier.
> > > > >
> > > > 
> > > >
> > > > Sorry I should have filled you in, James.  I forwarded him
> > the relevant
> > > > part of your discussion.
> > > >
> > > > >Also, I'm not sure how many passes I would make over the list,
> > > > you certainly
> > > > >wouldn't want a circular reference.
> > > > >
> > > > 
> > > >
> > > > Since we're talking about a database here:
> > > >
> > > > Yes, you'd want to avoid circular references.  However, I
> > wouldn't think
> > > > it would take more than a single pass through the view to
> > churn out all
> > > > of your resources.  If you used the key as ... *drum roll*
> > ... the key,
> > > > you could just look it up out of the database.  That's just my
initial
> > > > impression ...
> > >
> > > Well, I was thinking something more abstract.  You shouldn't
> > rely on being
> > > able to have a key (in the JDBC sense).  After all, the storage
> > might be a
> > > single table like this:
> > >
> > > keyen   en_US  fr
> > > -  ---  -- --
> > > global.title   Something(null) quelque chose
> > >
> > >
> > > ...or it could be a very complicated structure based off of a
> > "previously
> > > data driven ASP site" with a simple view giving you your info.
> > >
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
> >
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


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

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




RE: [New Functionality] ApplicationResources.properties to DB?

2002-08-29 Thread Craig R. McClanahan



On Thu, 29 Aug 2002, James Mitchell wrote:

> Date: Thu, 29 Aug 2002 16:36:30 -0400
> From: James Mitchell <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: RE: [New Functionality] ApplicationResources.properties to DB?
>
> Isn't this all done after the data is loaded?
>

Not if the data isn't loaded (i.e. cached)  :-)

Craig

> James Mitchell
> Software Engineer\Struts Evangelist
> Struts-Atlanta, the "Open Minded Developer Network"
> http://www.open-tools.org/struts-atlanta
>
>
>
>
> > -Original Message-
> > From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, August 29, 2002 4:17 PM
> > To: Struts Users Mailing List
> > Subject: RE: [New Functionality] ApplicationResources.properties to DB?
> >
> >
> >
> >
> > On Thu, 29 Aug 2002, Ian Vellosa wrote:
> >
> > > Date: Thu, 29 Aug 2002 21:54:10 +0200
> > > From: Ian Vellosa <[EMAIL PROTECTED]>
> > > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > > To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > > Subject: RE: [New Functionality] ApplicationResources.properties to DB?
> > >
> > > But what do you do each time you add a new language, say
> > German? you need to
> > > update the database structure adding a new column? Surely any solution
> > > should be generic enough not to need that.
> > >
> > > Unfortunately you would need the table to look something more like:
> > >
> > > key   language  value
> > >     
> > > global.title  enSomething
> > > global.title  frquelque chose
> > >
> > > but that will get huge in no time at all! and I doubt that
> > performance would
> > > be too good.
> > >
> >
> > Performance shouldn't be an issue if you index on both key and language.
> >
> > Don't forget to implement the inheritance rules for Locales, such that if
> > the user's Locale is "en_US" you search for language="en_US", then
> > language="en", then the default.
> >
> > Craig
> >
> >
> > >
> > > -Original Message-
> > > From: James Mitchell [mailto:[EMAIL PROTECTED]]
> > >
> > > > -Original Message-
> > > > From: Eddie Bush [mailto:[EMAIL PROTECTED]]
> > > >
> > > > James Mitchell wrote:
> > > >
> > > > >Sorry guys... for not responding earlier.
> > > > >
> > > > 
> > > >
> > > > Sorry I should have filled you in, James.  I forwarded him
> > the relevant
> > > > part of your discussion.
> > > >
> > > > >Also, I'm not sure how many passes I would make over the list,
> > > > you certainly
> > > > >wouldn't want a circular reference.
> > > > >
> > > > 
> > > >
> > > > Since we're talking about a database here:
> > > >
> > > > Yes, you'd want to avoid circular references.  However, I
> > wouldn't think
> > > > it would take more than a single pass through the view to
> > churn out all
> > > > of your resources.  If you used the key as ... *drum roll*
> > ... the key,
> > > > you could just look it up out of the database.  That's just my initial
> > > > impression ...
> > >
> > > Well, I was thinking something more abstract.  You shouldn't
> > rely on being
> > > able to have a key (in the JDBC sense).  After all, the storage
> > might be a
> > > single table like this:
> > >
> > > keyen   en_US  fr
> > > -  ---  -- --
> > > global.title   Something(null) quelque chose
> > >
> > >
> > > ...or it could be a very complicated structure based off of a
> > "previously
> > > data driven ASP site" with a simple view giving you your info.
> > >
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
> >
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>


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




RE: [New Functionality] ApplicationResources.properties to DB?

2002-08-29 Thread James Mitchell

Isn't this all done after the data is loaded?

James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 29, 2002 4:17 PM
> To: Struts Users Mailing List
> Subject: RE: [New Functionality] ApplicationResources.properties to DB?
>
>
>
>
> On Thu, 29 Aug 2002, Ian Vellosa wrote:
>
> > Date: Thu, 29 Aug 2002 21:54:10 +0200
> > From: Ian Vellosa <[EMAIL PROTECTED]>
> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > Subject: RE: [New Functionality] ApplicationResources.properties to DB?
> >
> > But what do you do each time you add a new language, say
> German? you need to
> > update the database structure adding a new column? Surely any solution
> > should be generic enough not to need that.
> >
> > Unfortunately you would need the table to look something more like:
> >
> > key   language  value
> >     
> > global.title  enSomething
> > global.title  frquelque chose
> >
> > but that will get huge in no time at all! and I doubt that
> performance would
> > be too good.
> >
>
> Performance shouldn't be an issue if you index on both key and language.
>
> Don't forget to implement the inheritance rules for Locales, such that if
> the user's Locale is "en_US" you search for language="en_US", then
> language="en", then the default.
>
> Craig
>
>
> >
> > -Original Message-
> > From: James Mitchell [mailto:[EMAIL PROTECTED]]
> >
> > > -Original Message-
> > > From: Eddie Bush [mailto:[EMAIL PROTECTED]]
> > >
> > > James Mitchell wrote:
> > >
> > > >Sorry guys... for not responding earlier.
> > > >
> > > 
> > >
> > > Sorry I should have filled you in, James.  I forwarded him
> the relevant
> > > part of your discussion.
> > >
> > > >Also, I'm not sure how many passes I would make over the list,
> > > you certainly
> > > >wouldn't want a circular reference.
> > > >
> > > 
> > >
> > > Since we're talking about a database here:
> > >
> > > Yes, you'd want to avoid circular references.  However, I
> wouldn't think
> > > it would take more than a single pass through the view to
> churn out all
> > > of your resources.  If you used the key as ... *drum roll*
> ... the key,
> > > you could just look it up out of the database.  That's just my initial
> > > impression ...
> >
> > Well, I was thinking something more abstract.  You shouldn't
> rely on being
> > able to have a key (in the JDBC sense).  After all, the storage
> might be a
> > single table like this:
> >
> > keyen   en_US  fr
> > -  ---  -- --
> > global.title   Something(null) quelque chose
> >
> >
> > ...or it could be a very complicated structure based off of a
> "previously
> > data driven ASP site" with a simple view giving you your info.
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


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



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




RE: [New Functionality] ApplicationResources.properties to DB?

2002-08-29 Thread Jason Rosen

I was actually hoping to have it implemented where the entire store would be
able to be updated on-the-fly and not have the application cache it on
initialization.  I would at least think that the MessageResources or
MessageResourceFactory implementation would have a reload() method so the
entire app didn't need to be reloaded
to update the cached properties.  This type of thing could even be
configurable (like Craig suggested).

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 29, 2002 12:25 PM
To: 'Struts Users Mailing List'
Subject: RE: [New Functionality] ApplicationResources.properties to DB?


My idea is to gather the properties into a static java.util.Properties
object from a call to a stored procedure and instantiate it in context scope
at application startup using the java -d argument to set the environment and
filename in the system properties.  The properties would then be available
to any calling method, same as if fetching from a textfile.

Mark

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 29, 2002 3:11 PM

I don't know how helpful that would be.  I love it for a persistence 
framework, but it seems like it might possibly be (mega-)over-kill for 
this task.  Although!  ... that would certainly take away any confusion 
about what the table/field names were (just map your classes to your 
tables)!  The down-side would be that, not only would you have to 
instantiate your bundle, but you'd also have to instantiate an object 
for *every single* key/value pair (that got used).

Regards,

Eddie

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

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




RE: [New Functionality] ApplicationResources.properties to DB?

2002-08-29 Thread Craig R. McClanahan



On Thu, 29 Aug 2002, Ian Vellosa wrote:

> Date: Thu, 29 Aug 2002 21:54:10 +0200
> From: Ian Vellosa <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: RE: [New Functionality] ApplicationResources.properties to DB?
>
> But what do you do each time you add a new language, say German? you need to
> update the database structure adding a new column? Surely any solution
> should be generic enough not to need that.
>
> Unfortunately you would need the table to look something more like:
>
> key   language  value
>     
> global.title  enSomething
> global.title  frquelque chose
>
> but that will get huge in no time at all! and I doubt that performance would
> be too good.
>

Performance shouldn't be an issue if you index on both key and language.

Don't forget to implement the inheritance rules for Locales, such that if
the user's Locale is "en_US" you search for language="en_US", then
language="en", then the default.

Craig


>
> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED]]
>
> > -Original Message-
> > From: Eddie Bush [mailto:[EMAIL PROTECTED]]
> >
> > James Mitchell wrote:
> >
> > >Sorry guys... for not responding earlier.
> > >
> > 
> >
> > Sorry I should have filled you in, James.  I forwarded him the relevant
> > part of your discussion.
> >
> > >Also, I'm not sure how many passes I would make over the list,
> > you certainly
> > >wouldn't want a circular reference.
> > >
> > 
> >
> > Since we're talking about a database here:
> >
> > Yes, you'd want to avoid circular references.  However, I wouldn't think
> > it would take more than a single pass through the view to churn out all
> > of your resources.  If you used the key as ... *drum roll* ... the key,
> > you could just look it up out of the database.  That's just my initial
> > impression ...
>
> Well, I was thinking something more abstract.  You shouldn't rely on being
> able to have a key (in the JDBC sense).  After all, the storage might be a
> single table like this:
>
> keyen   en_US  fr
> -  ---  -- --
> global.title   Something(null) quelque chose
>
>
> ...or it could be a very complicated structure based off of a "previously
> data driven ASP site" with a simple view giving you your info.
>
>
>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>


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




RE: [New Functionality] ApplicationResources.properties to DB?

2002-08-29 Thread Ian Vellosa

But what do you do each time you add a new language, say German? you need to
update the database structure adding a new column? Surely any solution
should be generic enough not to need that.

Unfortunately you would need the table to look something more like:

key   language  value
    
global.title  enSomething
global.title  frquelque chose

but that will get huge in no time at all! and I doubt that performance would
be too good.


-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]

> -Original Message-
> From: Eddie Bush [mailto:[EMAIL PROTECTED]]
>
> James Mitchell wrote:
>
> >Sorry guys... for not responding earlier.
> >
> 
>
> Sorry I should have filled you in, James.  I forwarded him the relevant
> part of your discussion.
>
> >Also, I'm not sure how many passes I would make over the list,
> you certainly
> >wouldn't want a circular reference.
> >
> 
>
> Since we're talking about a database here:
>
> Yes, you'd want to avoid circular references.  However, I wouldn't think
> it would take more than a single pass through the view to churn out all
> of your resources.  If you used the key as ... *drum roll* ... the key,
> you could just look it up out of the database.  That's just my initial
> impression ...

Well, I was thinking something more abstract.  You shouldn't rely on being
able to have a key (in the JDBC sense).  After all, the storage might be a
single table like this:

keyen   en_US  fr
-  ---  -- --
global.title   Something(null) quelque chose


...or it could be a very complicated structure based off of a "previously
data driven ASP site" with a simple view giving you your info.




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [New Functionality] ApplicationResources.properties to DB?

2002-08-29 Thread James Mitchell

> -Original Message-
> From: Eddie Bush [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 29, 2002 3:11 PM
> To: Struts Users Mailing List
> Subject: Re: [New Functionality] ApplicationResources.properties to DB?
>
>
> James Mitchell wrote:
>
> >Sorry guys... for not responding earlier.
> >
> 
>
> Sorry I should have filled you in, James.  I forwarded him the relevant
> part of your discussion.
>
> >Also, I'm not sure how many passes I would make over the list,
> you certainly
> >wouldn't want a circular reference.
> >
> 
>
> Since we're talking about a database here:
>
> Yes, you'd want to avoid circular references.  However, I wouldn't think
> it would take more than a single pass through the view to churn out all
> of your resources.  If you used the key as ... *drum roll* ... the key,
> you could just look it up out of the database.  That's just my initial
> impression ...

Well, I was thinking something more abstract.  You shouldn't rely on being
able to have a key (in the JDBC sense).  After all, the storage might be a
single table like this:

keyen   en_US  fr
-  ---  -- --
global.title   Something(null) quelque chose


...or it could be a very complicated structure based off of a "previously
data driven ASP site" with a simple view giving you your info.



>
> >Anyway, I've been searching for my Master-Wish-List that has
> this idea and a
> >few others in it.  Can't seem to find it on my laptop.  I'll
> send you more
> >stuff later.  Also let me know if you want help getting a
> >JDBCMessageResources using OJB rolling.
> >
> 
>
> I don't know how helpful that would be.  I love it for a persistence
> framework, but it seems like it might possibly be (mega-)over-kill for
> this task.  Although!  ... that would certainly take away any confusion
> about what the table/field names were (just map your classes to your
> tables)!  The down-side would be that, not only would you have to
> instantiate your bundle, but you'd also have to instantiate an object
> for *every single* key/value pair (that got used).
>
> Regards,
>
> Eddie
>
>

Another interesting twist -- what if you are using data from the resource
bundle to make your connectin to the database?  and now you are wanting to
use JDBCMessageResourceshm.

What if you rely on another plugin as your persistence layer?
How would ensure that it gets called first?

James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta


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




  1   2   3   >