DaveC426913
Programmer
Having trouble zeroing in on this bug. I'm pretty new to struts and XML. I'm just debugging the code, so I didn't build this. Other pages work great, so not a system problem.
javax.servlet.jsp.JspException: An error occurred while evaluating custom action attribute "value" with value "${homepageContent.homepageContent.mainNavigationLabel}": Unable to find a value for "mainNavigationLabel" in object of class "com.fj.homepageContent.impl.HomepageContentDocumentImpl$HomepageContentImpl" using operator "." (null)
In my XSD:
<xs:schema
<xs:element name="homepageContent">
<xs:complexType>
<xs:sequence>
...
<xs:element name="mainNavigationLabel" type="xs:string"/>
...
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
In my XML:
<?xml version="1.0" encoding="UTF-8"?>
<homepageContent xmlns=" ....
<mainNavigationLabel>Main Navigation:</mainNavigationLabel>
....
</homepageContent>
In my JSP:
<a href="#main"><cut value='${homepageContent.homepageContent.mainNavigationLabel}' escapeXml="false"/></a>
If I remove the above line from the JSP, it simply fails on the next one: homepageContent.homepageContent.divisionalNavigationLabel
javax.servlet.jsp.JspException: An error occurred while evaluating custom action attribute "value" with value "${homepageContent.homepageContent.mainNavigationLabel}": Unable to find a value for "mainNavigationLabel" in object of class "com.fj.homepageContent.impl.HomepageContentDocumentImpl$HomepageContentImpl" using operator "." (null)
In my XSD:
<xs:schema
<xs:element name="homepageContent">
<xs:complexType>
<xs:sequence>
...
<xs:element name="mainNavigationLabel" type="xs:string"/>
...
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
In my XML:
<?xml version="1.0" encoding="UTF-8"?>
<homepageContent xmlns=" ....
<mainNavigationLabel>Main Navigation:</mainNavigationLabel>
....
</homepageContent>
In my JSP:
<a href="#main"><cut value='${homepageContent.homepageContent.mainNavigationLabel}' escapeXml="false"/></a>
If I remove the above line from the JSP, it simply fails on the next one: homepageContent.homepageContent.divisionalNavigationLabel