Re: Help with message resource on Struts module

2004-11-22 Thread Radu Badita
Sadly, nobody gave me any useful help with this issue.
Fortunately I have found the answer myself looking at the DTD for
struts-config.xml files: "The module prefix (if any) is appended to
the key (${key}${prefix})." So, in my JSP I should have written
something like:



On Fri, 19 Nov 2004 10:49:56 +0200, Radu Badita <[EMAIL PROTECTED]> wrote:
> 
> Actually you are right - it is a typo, but only in the email (in the real
> files I have other names, and there are spelled right).
> 
> 
> 
> At 21:53 18.11.2004, you wrote:
> >Maybe this is just a typo but shouldn't you be using
> >'bundle="mymodulekey"' instead of 'bundle="mymodule"'?
> >
> >
> >
> >Radu Badita wrote:
> >
> >>
> >>Hello,
> >>I have a Struts module with the following message bundle:
> >>
> >>Inside an Action I can get messages from it with:
> >>dateFormat = getResources(request,"mymodulekey").getMessage("date.format");
> >>and it works fine. But this Action forwards to a jsp in which I have this
> >>tag:
> >>
> >>it doesn't work because it cannot find the bundle in any scope.
> >>Can anyone please help me with this? Maybe I don't use the  >>/> as it should be used...
> >>Thanks
> >>Radu
> >
> >
> >-
> >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: Help with message resource on Struts module

2004-11-19 Thread Radu Badita
Actually you are right - it is a typo, but only in the email (in the real 
files I have other names, and there are spelled right).

At 21:53 18.11.2004, you wrote:
Maybe this is just a typo but shouldn't you be using 
'bundle="mymodulekey"' instead of 'bundle="mymodule"'?


Radu Badita wrote:
Hello,
I have a Struts module with the following message bundle:

Inside an Action I can get messages from it with:
dateFormat = getResources(request,"mymodulekey").getMessage("date.format");
and it works fine. But this Action forwards to a jsp in which I have this 
tag:

it doesn't work because it cannot find the bundle in any scope.
Can anyone please help me with this? Maybe I don't use the  as it should be used...
Thanks
Radu

-
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: Help with message resource on Struts module

2004-11-18 Thread Bill Siggelkow
Maybe this is just a typo but shouldn't you be using 
'bundle="mymodulekey"' instead of 'bundle="mymodule"'?


Radu Badita wrote:

Hello,
I have a Struts module with the following message bundle:

Inside an Action I can get messages from it with:
dateFormat = getResources(request,"mymodulekey").getMessage("date.format");
and it works fine. But this Action forwards to a jsp in which I have 
this tag:

it doesn't work because it cannot find the bundle in any scope.

Can anyone please help me with this? Maybe I don't use the  as it should be used...
Thanks

Radu

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


Help with message resource on Struts module

2004-11-18 Thread Radu Badita

Hello,
I have a Struts module with the following message bundle:

Inside an Action I can get messages from it with:
dateFormat = getResources(request,"mymodulekey").getMessage("date.format");
and it works fine. But this Action forwards to a jsp in which I have this tag:

it doesn't work because it cannot find the bundle in any scope.
Can anyone please help me with this? Maybe I don't use the  
as it should be used...
Thanks

Radu

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