RE: Problems with ActionMessages... (again)

2002-11-08 Thread Xavier Combelle
I am amazing that nobody answer you, so i checked the struts exeemple
( file LinkSubscriptionTag )
it appears that you must'n directly call
ActionMessages messages = new ActionMessages();
but yous should use
MessageResources messages =
MessageResources.getMessageResources
(org.apache.struts.webapp.example.ApplicationResources);
I am amazed that nobody answered you ...
so, I will do my best

maybe you should use Action.MESSAGE_KEY instead
ActionMessages.GLOBAL_MESSAGE

it seems it's what it is specified in

http://jakarta.apache.org/struts/userGuide/struts-html.html#messages

message : By default the tag will retrieve the request scope bean it will
iterate over from the Action.ERROR_KEY constant string, but if this
attribute is set to 'true' the request scope bean will be retrieved from the
Action.MESSAGE_KEY constant string. Also if this is set to 'true', any value
assigned to the name attribute will be ignored. (RT EXPR)



Regards,
Xavier

 -Message d'origine-
 De : Michael Delamere [mailto:home;michael-delamere.de]
 Envoyé : jeudi 7 novembre 2002 12:17
 À : Struts Users Mailing List
 Objet : Problems with ActionMessages... (again)


 Hi,

 I´m just not getting anywhere with the ActionMessages.  I wrote to the
 mailing list about a week ago and got no answer.  Unfortunately since
 then, I still haven´t managed to solve the problem myself.
 Aaahhhrrr!

 I´m trying to display a message in my jsp which I have defined in my
 action as follows:

 ActionMessages messages = new ActionMessages();
 ActionMessage newMessage = new ActionMessage(regform.myMessage );
 messages.add(ActionMessages.GLOBAL_MESSAGE, newMessage);
 saveMessages(request, messages);


 And in my jsp:
 html:messages id=message message=true
 bean:write name=message/
 /html:messages

 I´m getting exactly the same error as described in the thread below
 (which also received no answer on this topic):

 http://www.mail-archive.com/struts-user;jakarta.apache.org/msg34621.html

 If anyone knows how to solve this, please help!

 Regards,

 Michael


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


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




RE: Problems with ActionMessages... (again)

2002-11-08 Thread Xavier Combelle
Sorry for my previous mail,
I forgot to remove something
that is what i wanted to say :


I am amazed that nobody answered you ...
so, I will do my best

maybe you should use Action.MESSAGE_KEY instead
ActionMessages.GLOBAL_MESSAGE

it seems it's what it is specified in

http://jakarta.apache.org/struts/userGuide/struts-html.html#messages

message : By default the tag will retrieve the request scope bean it will
iterate over from the Action.ERROR_KEY constant string, but if this
attribute is set to 'true' the request scope bean will be retrieved from the
Action.MESSAGE_KEY constant string. Also if this is set to 'true', any value
assigned to the name attribute will be ignored. (RT EXPR)



Regards,
Xavier

 -Message d'origine-
 De : Michael Delamere [mailto:home;michael-delamere.de]
 Envoyé : jeudi 7 novembre 2002 12:17
 À : Struts Users Mailing List
 Objet : Problems with ActionMessages... (again)


 Hi,

 I´m just not getting anywhere with the ActionMessages.  I wrote to the
 mailing list about a week ago and got no answer.  Unfortunately since
 then, I still haven´t managed to solve the problem myself.
 Aaahhhrrr!

 I´m trying to display a message in my jsp which I have defined in my
 action as follows:

 ActionMessages messages = new ActionMessages();
 ActionMessage newMessage = new ActionMessage(regform.myMessage );
 messages.add(ActionMessages.GLOBAL_MESSAGE, newMessage);
 saveMessages(request, messages);


 And in my jsp:
 html:messages id=message message=true
 bean:write name=message/
 /html:messages

 I´m getting exactly the same error as described in the thread below
 (which also received no answer on this topic):

 http://www.mail-archive.com/struts-user;jakarta.apache.org/msg34621.html

 If anyone knows how to solve this, please help!

 Regards,

 Michael


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


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




RE: Problems with ActionMessages... (again)

2002-11-08 Thread Michael Delamere
Xavier,

Thank you very much for your response!

I will certainly give it a go and let you know if it worked!

Regards,

Michael



-Original Message-
From: Xavier Combelle [mailto:xcombelle;kaptech.com] 
Sent: Freitag, 8. November 2002 11:06
To: Struts Users Mailing List
Subject: RE: Problems with ActionMessages... (again)

I am amazing that nobody answer you, so i checked the struts exeemple
( file LinkSubscriptionTag )
it appears that you must'n directly call
ActionMessages messages = new ActionMessages();
but yous should use
MessageResources messages =
MessageResources.getMessageResources
(org.apache.struts.webapp.example.ApplicationResources);
I am amazed that nobody answered you ...
so, I will do my best

maybe you should use Action.MESSAGE_KEY instead
ActionMessages.GLOBAL_MESSAGE

it seems it's what it is specified in

http://jakarta.apache.org/struts/userGuide/struts-html.html#messages

message : By default the tag will retrieve the request scope bean it
will
iterate over from the Action.ERROR_KEY constant string, but if this
attribute is set to 'true' the request scope bean will be retrieved from
the
Action.MESSAGE_KEY constant string. Also if this is set to 'true', any
value
assigned to the name attribute will be ignored. (RT EXPR)



Regards,
Xavier

 -Message d'origine-
 De : Michael Delamere [mailto:home;michael-delamere.de]
 Envoyé : jeudi 7 novembre 2002 12:17
 À : Struts Users Mailing List
 Objet : Problems with ActionMessages... (again)


 Hi,

 I´m just not getting anywhere with the ActionMessages.  I wrote to the
 mailing list about a week ago and got no answer.  Unfortunately since
 then, I still haven´t managed to solve the problem myself.
 Aaahhhrrr!

 I´m trying to display a message in my jsp which I have defined in my
 action as follows:

 ActionMessages messages = new ActionMessages();
 ActionMessage newMessage = new ActionMessage(regform.myMessage );
 messages.add(ActionMessages.GLOBAL_MESSAGE, newMessage);
 saveMessages(request, messages);


 And in my jsp:
 html:messages id=message message=true
 bean:write name=message/
 /html:messages

 I´m getting exactly the same error as described in the thread below
 (which also received no answer on this topic):


http://www.mail-archive.com/struts-user;jakarta.apache.org/msg34621.html

 If anyone knows how to solve this, please help!

 Regards,

 Michael


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


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


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




RE: Problems with ActionMessages... (again)

2002-11-07 Thread James Mitchell
Have you tried removing the trailing space?

 ActionMessage newMessage = new ActionMessage(regform.myMessage );
 ^

Not sure if that is a fix, but its a start.

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

Only two things are infinite, the universe and human stupidity, and I'm not
sure about the former.
- Albert Einstein (1879-1955)


 -Original Message-
 From: Michael Delamere [mailto:home;michael-delamere.de]
 Sent: Thursday, November 07, 2002 6:17 AM
 To: Struts Users Mailing List
 Subject: Problems with ActionMessages... (again)


 Hi,

 I´m just not getting anywhere with the ActionMessages.  I wrote to the
 mailing list about a week ago and got no answer.  Unfortunately since
 then, I still haven´t managed to solve the problem myself.
 Aaahhhrrr!

 I´m trying to display a message in my jsp which I have defined in my
 action as follows:

 ActionMessages messages = new ActionMessages();
 ActionMessage newMessage = new ActionMessage(regform.myMessage );
 messages.add(ActionMessages.GLOBAL_MESSAGE, newMessage);
 saveMessages(request, messages);


 And in my jsp:
 html:messages id=message message=true
 bean:write name=message/
 /html:messages

 I´m getting exactly the same error as described in the thread below
 (which also received no answer on this topic):

 http://www.mail-archive.com/struts-user;jakarta.apache.org/msg34621.html

 If anyone knows how to solve this, please help!

 Regards,

 Michael


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



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




RE: Problems with ActionMessages... (again)

2002-11-07 Thread Michael Delamere
No, I just changed the text in my outlook window to make it easier to
understand... :-) !  So in my actual program it´s correct...

Thanks for your response though!

Regards,

Michael



-Original Message-
From: James Mitchell [mailto:jmitchtx;telocity.com] 
Sent: Donnerstag, 7. November 2002 17:31
To: Struts Users Mailing List
Subject: RE: Problems with ActionMessages... (again)

Have you tried removing the trailing space?

 ActionMessage newMessage = new ActionMessage(regform.myMessage );
 ^

Not sure if that is a fix, but its a start.

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

Only two things are infinite, the universe and human stupidity, and I'm
not
sure about the former.
- Albert Einstein (1879-1955)


 -Original Message-
 From: Michael Delamere [mailto:home;michael-delamere.de]
 Sent: Thursday, November 07, 2002 6:17 AM
 To: Struts Users Mailing List
 Subject: Problems with ActionMessages... (again)


 Hi,

 I´m just not getting anywhere with the ActionMessages.  I wrote to the
 mailing list about a week ago and got no answer.  Unfortunately since
 then, I still haven´t managed to solve the problem myself.
 Aaahhhrrr!

 I´m trying to display a message in my jsp which I have defined in my
 action as follows:

 ActionMessages messages = new ActionMessages();
 ActionMessage newMessage = new ActionMessage(regform.myMessage );
 messages.add(ActionMessages.GLOBAL_MESSAGE, newMessage);
 saveMessages(request, messages);


 And in my jsp:
 html:messages id=message message=true
 bean:write name=message/
 /html:messages

 I´m getting exactly the same error as described in the thread below
 (which also received no answer on this topic):


http://www.mail-archive.com/struts-user;jakarta.apache.org/msg34621.html

 If anyone knows how to solve this, please help!

 Regards,

 Michael


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



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


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