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
ram_osAsked:
Who is Participating?
 
amateur83Commented:
<customer name="<bean:message key="cname.name" />">      
0
 
amateur83Commented:
instead of <customer name="<bean:message key="cname.name" />/>
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.