Hi,
That was the correct path, I didn´t know about it.
Thank you for your answers, guys. ;-)
- Original Message -
From: "Lukasz Lenart" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Monday, July 14, 2008 8:22 PM
Subject: Re: message resources ?
> The ApplicationResources.properties file is under:
> proyect_name/Webroot/WEB-INF/lib/ApplicationResources.properties
Move to the /WEB-INF/classes
Regards
--
Lukasz
http://www.lenart.org.pl/
-
To unsubscribe, e-mail: [EMAIL
nal Message - From: "Lukasz Lenart"
> <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List"
> Sent: Monday, July 14, 2008 6:32 PM
> Subject: Re: message resources ???key??? displaying
>
>
>> Hi,
>>
>> How did you co
??
Regards,
- Original Message -
From: "Lukasz Lenart" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Monday, July 14, 2008 6:32 PM
Subject: Re: message resources ???key??? displaying
Hi,
How did you configure the messages in struts-config? It sho
Hi,
How did you configure the messages in struts-config? It should be
something like this:
Regards
--
Lukasz
http://www.lenart.org.pl/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTE
Hi again,
I wrote:
>> Hi,
>>
>> Laurie Harper wrote:
>> >> Sebastian Göttschkes wrote:
>> >> >> Laurie Harper wrote:
>> >> >> Sebastian Göttschkes wrote:
>> >> >>> [...]
>> >> >>>
>> >> >>> I defined the message resources in the struts-config.xml:
>> >> >>>
>> >> >>> > >> >>> parameter="com.equi
Hi,
Laurie Harper wrote:
>> Sebastian Göttschkes wrote:
>> >> Laurie Harper wrote:
>> >> Sebastian Göttschkes wrote:
>> >>> [...]
>> >>>
>> >>> I defined the message resources in the struts-config.xml:
>> >>>
>> >>> > >>> parameter="com.equitystory.pms.resources.ApplicationResources" />
>> >>>
>>
Sebastian Göttschkes wrote:
Laurie Harper wrote:
Sebastian Göttschkes wrote:
[...]
I defined the message resources in the struts-config.xml:
[...]
The strange thing is I didn't change anything except for the two empty files I
created. So I can say that the problem isn't hard-coded text in
Hi,
>Laurie Harper wrote:
>
>Sebastian Göttschkes wrote:
>> Hi,
>>
>> I'm experiencing strange behaviours with the message resources and I'm not
>> sure about where to find the problem.
>>
>> I defined the message resources in the struts-config.xml:
>>
>> > parameter="com.equitystory.pms.resou
Sebastian Göttschkes wrote:
Hi,
I'm experiencing strange behaviours with the message resources and I'm not sure
about where to find the problem.
I defined the message resources in the struts-config.xml:
In the folder named in the xml (Resources/src/com/equitystory/pms/resources/),
I create
Also in jsp I have I also see a line in
tomcat where its loading MessageResources.properties file now if I remove
name tag from s:bean it compains cuz name is required but at the same time I
don't know what should go in name attribute.
On 8/23/07, Pavel Sapozhnikov <[EMAIL PROTECTED]> wrote:
>
>
Oh great. Thank you very much. Do I need to include any jars or what not
On 8/23/07, Jiang, Jane (NIH/NCI) [C] <[EMAIL PROTECTED]> wrote:
>
> I think it is the value of struts.custom.i18n.resources in
> struts.properties. You can also put it in struts.xml as
> />
>
> -Original Message-
>
I think it is the value of struts.custom.i18n.resources in
struts.properties. You can also put it in struts.xml as
-Original Message-
From: Pavel Sapozhnikov [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 23, 2007 2:14 PM
To: Struts Users Mailing List
Subject: message resources in stru
Kranti wrote:
hi,
i have a problem related to message resources
during the login time i am doing this
session.setAttribute(Globals.LOCALE_KEY, locale);
where locale is created by the user specific language settings there in DB.
in jsp:
using this and in struts config file
and inthe same di
underlying
Map, then call get(String) using the supplied property.
Make sense?
-Adam
-Original Message-
From: Marcus [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 08, 2006 9:47 AM
To: Struts Users Mailing List
Subject: Re: message resources
>
> When using EL with dyna beans you n
Marcus wrote:
>> When using EL with dyna beans you need to reference the map property
>> then your property. The struts tags (i.e. bean:write) handle this for
>> you.
>>
>>
> Or do you really mean a map? I am not using one..
...but you're using a DynaForm, so you are, so just do what he said ;)
When using EL with dyna beans you need to reference the map property
then your property. The struts tags (i.e. bean:write) handle this for
you.
Sorry,
call me dumb,
but I didn't really get what you tried to explain.
EL ?
- map property - you mean my dynaForm?
Or do you really mean a map? I
: message resources
> Nope... That means Servlet spec 2.2, which is less than you need ;)
>
> Pre-advice caveat: I've never figured out XML, DOCTYPEs, and people
> make fun of me for it.
>
> http://java.sun.com/xml/ns/j2ee";
> xmlns:xsi="http:
Nope... That means Servlet spec 2.2, which is less than you need ;)
Pre-advice caveat: I've never figured out XML, DOCTYPEs, and people make
fun of me for it.
http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xm
Marcus wrote:
> PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
> "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
>
>
> 2.2 means 2.0-ish, I assume?
Nope... That means Servlet spec 2.2, which is less than you need ;)
Pre-advice caveat: I've never figured out XML, DOCTYPEs, an
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
2.2 means 2.0-ish, I assume?
Marcus
Dave Newton schrieb:
Marcus wrote:
Any ideas?
What does your web.xml DOCTYPE look like? Irritatingly enough, you have
to tell Tomcat to go ahead and be 2.0-ish.
Dave
---
Marcus wrote:
> Any ideas?
What does your web.xml DOCTYPE look like? Irritatingly enough, you have
to tell Tomcat to go ahead and be 2.0-ish.
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [E
Mine is to either use a JSP 2.0 container so the original EL suggestion
${myBean.value} EL will work, or use the struts-el tags if you're using
a < JSP 2.0 container, which will do the same thing in a different way.
I am using Apache Tomcat 5.5, and AFAIK, it does support JSP 2.0.
For "myBean"
> From: Marcus [mailto:[EMAIL PROTECTED]
>
> Value "myValue" has been added.
> (With the value of "myValue" printed!)
>
Anyway, you've gotten a lot of... advice.
Mine is to either use a JSP 2.0 container so the original EL suggestion
${myBean.value} EL will work, or use the struts-el tags
>It's awfull, but assuming you have myDynaForm in some scope should work
Yes, indeed! ;-)
Isn't there something more struts like (using tags..)
Marcus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
Marcus wrote:
>
I wrote:
And it returns literally:
${myDynaForm.value}
Sorry, thought bean:message was supporting el notation :)
try this
It's awfull, but assuming you have myDynaForm in some scope should work
-
To uns
implementation for error messages in my project. So, I
just sent that code to you :)
-Original Message-
From: Marcus [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 08, 2006 3:01 PM
To: Struts Users Mailing List
Subject: Re: message resources
>In your Action class, add following stateme
In your Action class, add following statements before return statement:
ActionMessages oMsgs = new ActionErrors();
oMsgs.add(ActionMessages.GLOBAL_MESSAGE,
new ActionMessage("myValueAdded", ""));
saveErrors(oRequest.getSession(), oMsgs);
In your jsp, you must be having
It will work.
It's no
t be having
It will work.
-Original Message-
From: Marcus [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 08, 2006 2:44 PM
To: Struts Users Mailing List
Subject: Re: message resources
>
I wrote:
And it returns literally:
${myDynaForm.value}
>What do you have in the java class
>
I wrote:
And it returns literally:
${myDynaForm.value}
What do you have in the java class for the value you want to put in your
message, is it a has table or something else ?
It's all just plain simple.
I store my value in a dynaForm, forward to an action,
compute stuff, forward to to a
Hi,
What do you have in the java class for the value you want to put in your
message, is it a has table or something else ?
Olivier.
-Message d'origine-
De : Marcus [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 8 juin 2006 10:58
À : Struts Users Mailing List
Objet : Re: message reso
What do you mean by " Action adds value"??
Where does Action add this value?
-Original Message-
From: Marcus [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 08, 2006 2:30 PM
To: Struts Users Mailing List
Subject: Re: message resources
>Where do you want to print this messag
Try using
-Original Message-
From: Marcus [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 08, 2006 2:28 PM
To: Struts Users Mailing List
Subject: Re: message resources
>Pass the argument {0} as follows:
>
I tried that,
but then it writes literally:
Value value has been
Marcus wrote:
Pass the argument {0} as follows:
I tried that,
but then it writes literally:
Value value has been added.
But what need the VALUE of hte variable "myValue" to be printed.
:-(
Marcus
-
To unsubscribe, e-m
ments using arg0, arg1, .., arg4 in the
same manner.
HTH,
Mukta.
-Original Message-
From: Mukta [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 08, 2006 1:40 PM
To: 'Struts Users Mailing List'
Subject: RE: message resources
Pass the argument {0} as follows:
-Original Me
Where do you want to print this message ?
I type in my value into a textbox.
Forward to action.
Action adds value, forwards to jsp.
Now jsp should say:
Value "myValue" has been added.
(With the value of "myValue" printed!)
What type of data do you use ?
Strings
Marcus
-
Pass the argument {0} as follows:
I tried that,
but then it writes literally:
Value value has been added.
But what need the VALUE of hte variable "myValue" to be printed.
:-(
Marcus
-
To unsubscribe, e-mail: [EMAIL PROT
Hi Marcus,
Where do you want to print this message ?
What type of data do you use ?
Regards,
Olivier
-Message d'origine-
De : Marcus [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 8 juin 2006 10:02
À : Struts Users Mailing List
Objet : message resources
Hi,
I want to print a message like th
Pass the argument {0} as follows:
-Original Message-
From: Marcus [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 08, 2006 1:32 PM
To: Struts Users Mailing List
Subject: message resources
Hi,
I want to print a message like this:
myValueAdded=my value{0} has been added.
How can I fil
Thanks Niall, That was very helpful.
I have another issue with my validator.xml. Based on my investigation, I
have configured everything correctly. But there must be something wrong with
this basic and barebone validator.xml file, because even if I change the form
name to something bogus
This explains how "key" is used:
http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html#section6
In respect of validator, although it has had a "bundle" attribute
(which is the same as "key" in struts-config.xml) for a while, it was
only actually supported since Struts 1.2.7 and Va
truts Users Mailing List
Subject: RE: Message Resources from DB
I got one of these solutions out and it talks about setting up the
resource like this:
1. I do not want to put jndi information in my struts
2. I do not want to put any SQL or SQL-Like pieces into my struts.
So, is there a w
"JNDI | SQL" above?
-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 16, 2005 3:56 PM
To: Struts Users Mailing List
Subject: Re: Message Resources from DB
No, you are not wrong. Struts will likely be changed to use Commons
Resourc
Dear Brian,
I have some Source code regarding the issue of getting Message resource
from DB.Also some excerpts gathered from various forums written in
"forumsum.txt".
I hope it will help you.
Regards,
Shailesh Barde
[EMAIL PROTECTED]
Alphonso Informex Pvt. Ltd., Pune(India)
9890799722
e included in 1.3.x!
Thanks!
Brian Russell
www.closerware.com
-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 16, 2005 6:56 PM
To: Struts Users Mailing List
Subject: Re: Message Resources from DB
No, you are not wrong. Struts will likely be changed to u
n [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 16, 2005 4:00 PM
To: Struts Users Mailing List
Subject: RE: Message Resources from DB
Can you send me the solution to that? I don't have that book, I
have an
older version without that solution.
-Original Message-
From: Brian Russell [ma
ed in
Commons-Resources and hopefully Struts 1.3.. but I may be wrong about
that.
Brian Russell
www.closerware.com
-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 16, 2005 4:00 PM
To: Struts Users Mailing List
Subject: RE: Message Resources fro
Can you send me the solution to that? I don't have that book, I have an
older version without that solution.
-Original Message-
From: Brian Russell [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 16, 2005 12:58 PM
To: 'Struts Users Mailing List'
Subject: RE: Message Re
ginal Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 16, 2005 3:47 PM
To: Struts Users Mailing List
Subject: Re: Message Resources from DB
What database would you like to use?
--
James Mitchell
678.910.8017
Skpe: jmitchtx
On Nov 16, 2005, at 3:41 PM,
What database would you like to use?
--
James Mitchell
678.910.8017
Skpe: jmitchtx
On Nov 16, 2005, at 3:41 PM, Brian Russell wrote:
I know this topic has come up before but.. Does anyone have a
suggestion
on a method for pulling Message Resources from a DB, as well as making
sure a restar
Hi,
You can checkout archived messages on this issue at
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg15779.html
answered by Ted himself.
Before preceeding do once again verify these things.
1. struts-config.xml has an entry for 'Message Resource Defintion'
Ex:
Here's some code:
MessageResources messages =MessageResources.getMessageResources("messages");
String message = messages.getMessage(msg_key, args);
Here's my struts.xml:
.
-Original Message-
From: Scott Purcell <
ruts Users Mailing List
Subject: RE: message-resources question
Yes, you can. Take a look at getResources(request)
- Scott
-Original Message-
From: Scott Purcell [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 24, 2005 3:10 PM
To: user@struts.apache.org
Subject: message-resources qu
Yes, you can. Take a look at getResources(request)
- Scott
-Original Message-
From: Scott Purcell [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 24, 2005 3:10 PM
To: user@struts.apache.org
Subject: message-resources question
In an action class, can one get access to the message-re
Source Evangelist
> >EdgeTech, Inc.
> >678.910.8017
> >AIM: jmitchtx
> >
> >- Original Message -
> >From: <[EMAIL PROTECTED]>
> >To: ""Struts Users Mailing List""
> >Sent: Wednesday, January 19, 2005 8:42 AM
> >
e -
>From: <[EMAIL PROTECTED]>
>To: ""Struts Users Mailing List""
>Sent: Wednesday, January 19, 2005 9:37 AM
>Subject: Re: Message Resources not displayed
>
>
>> James,
>>
>> the taglib for is declared on the page.
>>
ot;"
Sent: Wednesday, January 19, 2005 9:37 AM
Subject: Re: Message Resources not displayed
James,
the taglib for is declared on the page.
I can run the application on iPlanet and it works just as on Tomcat, but
Error messages are not displayed.
Karim
"James Mitchell" <[EMA
l
>Software Engineer / Open Source Evangelist
>EdgeTech, Inc.
>678.910.8017
>AIM: jmitchtx
>
>- Original Message -
>From: <[EMAIL PROTECTED]>
>To: ""Struts Users Mailing List""
>Sent: Wednesday, January 19, 2005 9:15 AM
>Subject: Re: Message
gineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message -
From: <[EMAIL PROTECTED]>
To: ""Struts Users Mailing List""
Sent: Wednesday, January 19, 2005 9:15 AM
Subject: Re: Message Resources not displayed
Sorry James, I thou
: ""Struts Users Mailing List""
>Sent: Wednesday, January 19, 2005 8:42 AM
>Subject: Re: Message Resources not displayed
>
>
>> It is there because Tomcat does display the messages.
>>
>>
>>
>> "James Mitchell" <[EMAIL PROTEC
That's not what I was asking.
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message -
From: <[EMAIL PROTECTED]>
To: ""Struts Users Mailing List""
Sent: Wednesday, January 19, 2005 8:42 AM
It is there because Tomcat does display the messages.
"James Mitchell" <[EMAIL PROTECTED]> wrote:
>How are you deploying your app? Packaged with Ant?
>
>Many times, people forget to have resources copied during the build process.
>This is automatically done for us with most IDEs, but Ant won'
How are you deploying your app? Packaged with Ant?
Many times, people forget to have resources copied during the build process.
This is automatically done for us with most IDEs, but Ant won't do it unless
you tell it to.
Open your .war and make sure it is there under
/WEB-INF/classes/org/app/r
> -Original Message-
> From: Nathan Coast [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 29, 2004 7:01 PM
> To: Struts Users Mailing List
> Subject: Re: message resources in db
>
>
> >
> > Then you have the apparent fact that by doing so you are
Then you have the apparent fact that by doing so you are now outside the Java provided i18n stuff,
when you mention 'java provided i18n stuff' are you referring to the
message resources features in struts (message bundles, locales etc)? or
have I missed another java feature somewhere?
So, you ga
> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 29, 2004 11:18 AM
> To: Struts Users Mailing List
> Subject: Re: message resources in db
>
>
> My reasoning for what I've done is:
> a) it scratches my
> -Original Message-
> From: Jim Barrows [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 29, 2004 8:15 AM
> To: Struts Users Mailing List
> Subject: RE: message resources in db
>
> > -Original Message-
> > From: Nathan Coast [mailto:[EMAIL
- Original Message -
From: "Jim Barrows" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Wednesday, December 29, 2004 11:15 AM
Subject: RE: message resources in db
-Original Message-
From: Nathan Coast [mailto:[EMAIL PROTECTED]
Sent: Wednesday, D
> -Original Message-
> From: Nathan Coast [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 29, 2004 4:17 AM
> To: Struts Users Mailing List
> Subject: message resources in db
>
>
> Hi,
>
> Has anyone developed message resources that pulls messages
> from a db? I
> have followed a
http://sourceforge.net/project/showfiles.php?group_id=49385&package_id=76369
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message -
From: "Nathan Coast" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Wednesda
: Thursday, December 02, 2004 2:08 AM
To: Struts Users Mailing List
Subject: Re: message-resources in struts-config.xml won't work!
Hello again,
I'm wondering where to place message-resources within the struts-config.xml
in struts version 1.0.2?
I'm always getting errors in tomcat
Ok now it seems that I've found the solution:
When using struts1.0.2 the documentation of the tags claims that
"bundle" can be used with bean:message, html:image, etc.
But the struts-config dtd that is provided within the struts.jar does
not support the message-resource tag at all!
But what is w
Hello again,
I'm wondering where to place message-resources within the
struts-config.xml in struts version 1.0.2?
I'm always getting errors in tomcat's log file regarding the
struts-config.xml whenever I insert a message-resource tag!?
Any ideas?
Many thanx
Best regards
--
==
Hello again,
Lane, Brad schrieb:
Use
key=""/>
Unfortunately this did not change anything. I'm still getting this error.
Kind regards
--
René Thol
E-Mail: [EMAIL PROTECTED]
---
Use
-Original Message-
From: René Thol [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 01, 2004 9:15 AM
To: Struts Users Mailing List
Subject: message-resources in struts-config.xml won't work!
Hello again everybody,
I just changed my application from having its message resources
Thanks for the quick reply.
I am just curious why the struts-blank.war for struts
1.2 uses MessageResources at the message resource
setting when there is no MessageResource.properties
file inside the resources folder.
So is there a mistake there and that the resource
setting should have been resou
Lai Boon Hui wrote:
I am just playing around with struts-blnak.war that
comes with all dist.
The reason that the references to resources works is that the references
really refer to the files in question. Just any old name won't do. So,
if you use a file name that is totally different from the
I am just playing around with struts-blnak.war that
comes with all dist.
The structure is like:
C:.
|---META-INF
|---pages
|---WEB-INF
|---classes
| |--resources
|---lib
|---src
|---java
|---resources
where application.properties file is in the resources
folder. Thus when you set
the application
Lai Boon Hui wrote:
In struts 1.1, struts-confgi.xml we declare properties
file setting using:
but in struts 1.2, it has become:
as
seen in struts-blank.war. I tried to extract and
recompile and redeploy this war file and it didn't
work like the properties file is not recognized. It
only worked
The answer is, (someone correct me if i am wrong!)
No, Globals.MESSAGES_KEY key only holds the default MessageResources. If you look you
will find an attribute named 'systemErrors' wich contains the MessageResources object
of app.resources.SystemErrors
And if you use this bundle for error mess
You do not need to load the Message ressources.
I would suggest you to place the following in your AS classpath :
A file named : SimpleLog.properties (may be all small letters)
with the following content :
#
#
#
#
#
#
# Author : $Author$
# Revision : $Revision$
# Last updated : $Date$
# #
If you want to get MessageResources in your validate method then you can
just do:
MessageResources messages = ((MessageResources)
request.getAttribute(Globals.MESSAGES_KEY));
and that should do the trick.
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Frid
82 matches
Mail list logo