• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 183
  • Last Modified:

calling a bean from a custom jsp tag

Hi,

Below I have custom tag that works like so:

<customer name="barney"/>

I want to call the customer name from a properties file. Im trying to do it like this:

<customer name="<bean:message key="cname.name" />/>
I keep getting this error:
Attribute cname.name has no value. Im sure its something to do my quotes??

All help is appreciated.

Thanks very much
0
ram_os
Asked:
ram_os
  • 2
1 Solution
 
amateur83Commented:
<customer name="<bean:message key="cname.name" />">      
0
 
amateur83Commented:
instead of <customer name="<bean:message key="cname.name" />/>
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now