Ok...
why, now, I have the following Exception?
javax.servlet.jsp.JspException: Define tag can contain only one of name
attribute, value attribute, or body content
at org.apache.struts.taglib.bean.DefineTag.doEndTag(DefineTag.java:257)
Thanks
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]