Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

basic JSP/XML error - Unable to find a value for "x" in object of cla

basic JSP/XML error - Unable to find a value for "x" in object of cla

basic JSP/XML error - Unable to find a value for "x" in object of cla

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:element name="homepageContent">
        <xs:element name="mainNavigationLabel" type="xs:string"/>


In my XML:

<?xml version="1.0" encoding="UTF-8"?>
<homepageContent xmlns="http://fj.com/homepageContent">
    <mainNavigationLabel>Main Navigation:</mainNavigationLabel>

In my JSP:

&lt;a href="#main"&gt;<c:out value='${homepageContent.homepageContent.mainNavigationLabel}' escapeXml="false"/>&lt;/a&gt;

If I remove the above line from the JSP, it simply fails on the next one: homepageContent.homepageContent.divisionalNavigationLabel

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close