Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

StrutsTags/JSP or... Another Nesting Newbie

843838Mar 27 2006 — edited Mar 27 2006
I am having trouble teaching myself Struts taglib syntax/JSP coding and I am stuck on a classic nested object JSP/Struts syntax problem...

Can you explain the errors in the following snippet?

Background: The form associated with the jsp contains a property called "electronicDocDetails" which is an ArrayList of "DisplayFieldList" objects. DisplayFieldList objects have a list of "DisplayField" objects that have displayNames and values, etc..

The Jsp validation results in the error "Jsp Translate: The Attribute value has no value"

Also, I've tried writing this using only 'logic' and 'bean' tags instead of using nesting and I get the same error. (Yes, I've read two Struts books and the Apache Struts website documentation :-( ).

------------------------------------------------------------
<BODY>
<html:form action="/CaseInquiryDetails">

::
::

<nested:iterate property="electronicDocDetails" >
<TR align="center">
<TD align="center" colspan="4" class="MssTDFormLabel">
<bean:message key="label.caseinquirydetails.electronicdoc"/></TD>
</TR>
<nested:iterate property="fieldList" >
<TR align="center">
<TD align="left" class="MssTDFormLabel" colspan="1">
<nested:write property="displayName" />
</TD>
<nested:equal property="displayName" value="NAME" >
<TD align="left" class="MssTDFormLabel" colspan="3">

<%-- ERROR ON THE FOLLOWING LINE with the first '<bean:write>' --%>
<%-- "Jsp Translate: The Attribute value has no value" --%>
<html:link href="<%=prefix%><bean:write property="value" />">
<bean:write property="value" />
</html:link>
</TD>
</nested:equal>
<nested:notEqual property="displayName" value="Name" >
<TD align="left" class="MssTDFormResult" colspan="3">
<bean:write property="value" />
</TD>
</nested:notEqual>
</TR>
</nested:iterate>
</nested:iterate>
-------------------------------------------------------------------------------
TIA...
jrh
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 24 2006
Added on Mar 27 2006
1 comment
301 views