velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bayarsaikhan VOLODYA <bayarsaik...@gmail.com>
Subject Fwd: [HELP] The differences between ActionMessagesTool and MessagesTool?
Date Mon, 25 Jul 2005 07:52:53 GMT
that is true. if you add
ActionError, it goes to ErrorsTool
ActionMessage,it goes to ActionMessageTool


---------- Forwarded message ----------
From: Pham Anh Tuan <anhtuan@ichi-corp.jp>
Date: Jul 25, 2005 10:47 AM
Subject: Re: [HELP] The differences between ActionMessagesTool and MessagesTool?
To: Velocity Users List <velocity-user@jakarta.apache.org>,
Bayarsaikhan VOLODYA <bayarsaikhan@gmail.com>


as you said, we must send our messages with GLOBAL_MESSAGE ?

if so, "I'm clear" :D

thanks Bayarsaikhan
----- Original Message -----
From: "Bayarsaikhan VOLODYA" <bayarsaikhan@gmail.com>
To: "Velocity Users List" <velocity-user@jakarta.apache.org>
Sent: Monday, July 25, 2005 2:38 PM
Subject: Fwd: [HELP] The differences between ActionMessagesTool and
MessagesTool?


> it is not only used for form validation but also used for all kind of
> messages u wish to send from struts actions. to send message to
> velocity from struts, we use this code;
>
> ***
> ActionMessages msgs = new ActionMessages();
> msgs.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("user.added"));
> saveMessages(request,msgs);
> ***
>
> clear?
>
> ---------- Forwarded message ----------
> From: Pham Anh Tuan <anhtuan@ichi-corp.jp>
> Date: Jul 25, 2005 10:29 AM
> Subject: Re: [HELP] The differences between ActionMessagesTool and
> MessagesTool?
> To: Velocity Users List <velocity-user@jakarta.apache.org>,
> Bayarsaikhan VOLODYA <bayarsaikhan@gmail.com>
>
>
> Thanks Bayarsaikhan,
>
> but as you said, ActionMessagesTool is used rarely, because it's only for
> form validation error?
>
> plz give me more cases so we can use ActionMessagesTool Bayarsaikhan... :(
> ----- Original Message -----
> From: "Bayarsaikhan VOLODYA" <bayarsaikhan@gmail.com>
> To: "Velocity Users List" <velocity-user@jakarta.apache.org>
> Sent: Monday, July 25, 2005 2:01 PM
> Subject: Re: [HELP] The differences between ActionMessagesTool and
> MessagesTool?
>
>
>>- ActionMessagesTool is used to retrieve messages from struts. for
>> example, form validation error messages coming from struts validation.
>> - MessagesTool is used to retrieve locale messages from
>> Applicationresource.properties file.
>>
>>
>> On 7/25/05, Pham Anh Tuan <anhtuan@ichi-corp.jp> wrote:
>>> hi all,
>>>
>>> would you plz show me the differences between ActionMessagesTool and
>>> MessagesTool.
>>>
>>> I don't know exactly what they are :(
>>>
>>> thanks for reading!
>>>
>>> Pham
>>>
>>
>>
>> --
>> Bayarsaikhan VOLODYA
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>>
>>
>
>
>
>
> --
> Bayarsaikhan VOLODYA
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
>




-- 
Bayarsaikhan VOLODYA

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message