[prev in list] [next in list] [prev in thread] [next in thread] 

List:       velocity-user
Subject:    Fwd: [HELP] The differences between ActionMessagesTool and MessagesTool?
From:       Bayarsaikhan VOLODYA <bayarsaikhan () gmail ! com>
Date:       2005-07-25 7:52:53
Message-ID: b175f5eb05072500521df38f4 () mail ! gmail ! com
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic