You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by PC Leung <pc...@gmail.com> on 2005/12/27 13:08:56 UTC
How to retrieve inside action class as it is in jsp?
How to retrieve message text inside action class as it is in jsp?
<bean:message key="${functionProgram.message_key}"/>
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: How to retrieve inside action class as it is in jsp?
Posted by PC Leung <pc...@gmail.com>.
thnx
On 12/27/05, ganesh kannusamy <ga...@gmail.com> wrote:
> Hi *Leung,*
> * The* code for accessing the message from a properties file in Action
> Class is,
>
> ActionMessages messages = new ActionMessages();
> messages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("
> view.success.totrash"));
>
> Thanks,
> Ganesh.K
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: How to retrieve inside action class as it is in jsp?
Posted by ganesh kannusamy <ga...@gmail.com>.
Hi *Leung,*
* The* code for accessing the message from a properties file in Action
Class is,
ActionMessages messages = new ActionMessages();
messages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("
view.success.totrash"));
Thanks,
Ganesh.K