# ComplexJavaObj.jsp Sample

This topic inludes the source code for the ComplexJavaObj.jsp Sample.

## Sample Location

This sample is located in the following directory in your WebLogic Workshop installation:

BEA_HOME/weblogic81/samples/workshop/SamplesApp/WebApp/tagSamples/netui_databinding/repeater/

## Sample Source Code

`01 <!-- 02 This page shows to nest one repeater tag within another. 03 04 Note that the XScript expression {container.item} means two different things 05 in the outer and inner tables. In the outer table {container.item} refers to 06 the individual Order objects; in the inner table {contain.item} refers to the 07 indivdual OrderItems within each Order. 08 09 --> 10 <%@ page language="java" contentType="text/html;charset=UTF-8"%> 11 <%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%> 12 <%@ taglib uri="netui-tags-html.tld" prefix="netui"%> 13 <%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%> 14 <html> 15 <head> 16 <title> 17 repeaterTag/nested.jsp 18 </title> 19 <netui:base/> 20 </head> 21 <body> 22 <jsp:include page="/resources/jsp/header.jsp"/> 23 <netui-data:callPageFlow method="getComplexJavaObject" resultId="order"/> 24 <netui-data:repeater dataSource="{pageContext.order}"> 25 <netui-data:repeaterHeader> 26 <p><b>A complex Java Object rendered in nested HTML tables</b> 27 <p><table border="1" bgcolor="#ccffff"> 28 <tr> 29 <td><b>Order ID</b></td> 30 <td><b>Store ID</b></td> 31 <td><b>Total Price</b></td> 32 <td><b>Weight</b></td> 33 <td><b>Order Items</b></td> 34 <td><b>Tracking ID</b></td> 35 </tr> 36 </netui-data:repeaterHeader> 37 <netui-data:repeaterItem> 38 <tr> 39 <td> 40 <netui:label value="{container.item.orderID}" /> 41 </td> 42 <td> 43 <netui:label value="{container.item.storeID}" /> 44 </td> 45 <td> 46 <netui:label value="{container.item.value}" /> 47 </td> 48 <td> 49 <netui:label value="{container.item.weight}" /> 50 </td> 51 <td> 52 <netui-data:repeater dataSource="{container.item.orderItems}"> 53 <netui-data:repeaterHeader> 54 <table border="1" bgcolor="#ffcccc" style="font-size:8pt;"> 55 <tr> 56 <td><b>Name</b></td> 57 <td><b>Price</b></td> 58 <td><b>Quantity</b></td> 59 </tr> 60 </netui-data:repeaterHeader> 61 <netui-data:repeaterItem> 62 <tr> 63 <td><netui:label value="{container.item.itemName}" /></td> 64 <td><netui:label value="{container.item.itemPrice}" /></td> 65 <td><netui:label value="{container.item.itemQuantity}" /></td> 66 </tr> 67 </netui-data:repeaterItem> 68 <netui-data:repeaterFooter> 69 </table> 70 </netui-data:repeaterFooter> 71 </netui-data:repeater> 72 </td> 73 <td> 74 <netui:label value="{container.item.trackingID}" /> 75 </td> 76 </tr> 77 </netui-data:repeaterItem> 78 <netui-data:repeaterFooter> 79 </table> 80 </netui-data:repeaterFooter> 81 </netui-data:repeater> 82 <p><a href="index.jsp">Back to Repeater Samples Home</a> 83 </body> 84 </html>`