Object referenced but not declared

In my Spring MVC application XML file for using fragments, I wrote the following -

<definition name="dashboard" extends="base.definition"> <put-attribute name="title" value="Dashboard - CMS &diams; &reg; Galactic NetOne" /> <put-attribute name="body" value="/WEB-INF/views/dashboard.jsp" /> </definition> 

However, &diams; and &reg; &diams; and &reg; gives a referenced error but is not declared. Please, help.

+4
source share
1 answer

You need to either declare these objects, or replace them with the hexadecimal or decimal equivalent. I guess the characters should be for diams and reg ; You may need to change them.

An example of declaring objects:

 <!DOCTYPE definition [ <!ENTITY reg "&#174;"> <!ENTITY diams "&#9830;"> ]> <definition name="dashboard" extends="base.definition"> <put-attribute name="title" value="Dashboard - CMS &diams; &reg; Galactic NetOne" /> <put-attribute name="body" value="/WEB-INF/views/dashboard.jsp" /> </definition> 

An example of replacing objects:

 <definition name="dashboard" extends="base.definition"> <put-attribute name="title" value="Dashboard - CMS &#9830; &#174; Galactic NetOne" /> <put-attribute name="body" value="/WEB-INF/views/dashboard.jsp" /> </definition> 

You can use the XHTML DTD as a reference for objects: http://www.w3.org/TR/xhtml1/dtds.html#h-A2

+10
source

All Articles