Can you explain me better, please? In witch xml-file do I have to insert the 
</bean:define> tag?
Thx
Mauro


-----Original Message-----
From: Susan Bradeen [mailto:[EMAIL PROTECTED]
Sent: venerd� 21 marzo 2003 14.36
To: Struts Users Mailing List
Subject: Re: Accessing resource properties


Something like this?

<bean:define id="myValue" >
   <bean:message key="whatever.from.your.message.resources"/>
</bean:define>

Then use <%= myValue %> where you need to.


Susan Bradeen

On 03/21/2003 06:05:14 AM Mohan Radhakrishnan wrote:

> Hi
> 
> Is there a way to store what is returned by
> 
> <bean:message key="<%=x%>"/>
> 
> in a variable in the scope directly using bean:define or something else
> instead of writing the following scriptlet in my JSP ?
> 
> MessageResources messages =
> MessageResources.getMessageResources("ApplicationResources");
> messages.getMessage( "information" );
> 
> Thanks,
> Mohan
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to