You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Arnaud HERITIER <ah...@sopragroup.com> on 2002/12/17 12:31:33 UTC

[Struts 1.1] How to access to MessageRessources in an ActionForm ??

Hi all!

I have a question about Struts 1.1.

I would like to access to the default MessageRessources instance I use in my
web app in the validate method of an ActionForm.
How can I do that ??
I didn't do it up to now and I don't find a solution.

Any ideas ??


Arnaud HERITIER
EAI Consulting
Sopra Group
Tél. : +33 (0)1 53 33 44 74
email : aheritier@sopragroup.com
  Ce message est exclusivement destiné aux personnes dont le nom figure
ci-dessus. Il peut contenir des informations confidentielles dont la
divulgation est à ce titre rigoureusement interdite. Dans l'hypothèse où
vous avez reçu ce message par erreur, merci de le renvoyer à l'adresse
e-mail ci-dessus et de détruire toute copie.

  This message may contain confidential and proprietary material for the
sole use of the intended recipient. Any review or distribution by others is
strictly prohibited. If you are not the intended recipient, please contact
the sender and delete all copies.


RE: [Struts 1.1] How to access to MessageRessources in an ActionForm ??

Posted by Arnaud HERITIER <ah...@sopragroup.com>.
It works but it is a deprecated method in 1.1

Is anyone know the workaround in 1.1 ???

> -----Message d'origine-----
> De : Toni [mailto:toni@fdplus.com]
> Envoyé : mardi 17 décembre 2002 16:01
> À : 'Struts Users Mailing List'; aheritier@sopragroup.com
> Objet : RE: [Struts 1.1] How to access to MessageRessources in an
> ActionForm ??
>
>
> Try this:
> MessageResources msgres = getServlet().getResources();
>
>
> -----Original Message-----
> From: Arnaud HERITIER [mailto:aheritier@sopragroup.com]
> Sent: Tuesday, December 17, 2002 6:32 AM
> To: Struts Users Mailing List (E-mail)
> Subject: [Struts 1.1] How to access to MessageRessources in an
> ActionForm ??
>
>
> Hi all!
>
> I have a question about Struts 1.1.
>
> I would like to access to the default MessageRessources instance I use
> in my web app in the validate method of an ActionForm. How
> can I do that
> ?? I didn't do it up to now and I don't find a solution.
>
> Any ideas ??
>
>
> Arnaud HERITIER
> EAI Consulting
> Sopra Group
> Tél. : +33 (0)1 53 33 44 74
> email : aheritier@sopragroup.com
>   Ce message est exclusivement destiné aux personnes dont le
> nom figure
> ci-dessus. Il peut contenir des informations confidentielles dont la
> divulgation est à ce titre rigoureusement interdite. Dans
> l'hypothèse où
> vous avez reçu ce message par erreur, merci de le renvoyer à l'adresse
> e-mail ci-dessus et de détruire toute copie.
>
>   This message may contain confidential and proprietary
> material for the
> sole use of the intended recipient. Any review or
> distribution by others
> is strictly prohibited. If you are not the intended recipient, please
> contact the sender and delete all copies.
>
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: [Struts 1.1] How to access to MessageRessources in an ActionForm ??

Posted by Toni <to...@fdplus.com>.
Try this: 
MessageResources msgres = getServlet().getResources();


-----Original Message-----
From: Arnaud HERITIER [mailto:aheritier@sopragroup.com] 
Sent: Tuesday, December 17, 2002 6:32 AM
To: Struts Users Mailing List (E-mail)
Subject: [Struts 1.1] How to access to MessageRessources in an
ActionForm ??


Hi all!

I have a question about Struts 1.1.

I would like to access to the default MessageRessources instance I use
in my web app in the validate method of an ActionForm. How can I do that
?? I didn't do it up to now and I don't find a solution.

Any ideas ??


Arnaud HERITIER
EAI Consulting
Sopra Group
Tél. : +33 (0)1 53 33 44 74
email : aheritier@sopragroup.com
  Ce message est exclusivement destiné aux personnes dont le nom figure
ci-dessus. Il peut contenir des informations confidentielles dont la
divulgation est à ce titre rigoureusement interdite. Dans l'hypothèse où
vous avez reçu ce message par erreur, merci de le renvoyer à l'adresse
e-mail ci-dessus et de détruire toute copie.

  This message may contain confidential and proprietary material for the
sole use of the intended recipient. Any review or distribution by others
is strictly prohibited. If you are not the intended recipient, please
contact the sender and delete all copies.




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>