# Index.jsp Sample

This topic inludes the source code for the Index.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/pad/

## Sample Source Code

`01 <%@ page language="java" contentType="text/html;charset=UTF-8"%> 02 <%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%> 03 <%@ taglib uri="netui-tags-html.tld" prefix="netui"%> 04 <%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%> 05 <netui:html> 06 <head> 07 <title> 08 index.jsp 09 </title> 10 <link href="../../../resources/css/style.css" type="text/css" rel="stylesheet"/> 11 </head> 12 <body> 13 <jsp:include page="/resources/jsp/header.jsp"/> 14 <h3>Pad Tag Sample</h3> 15 <blockquote> 16 The following lists use a &lt;netui-data:pad> tag to control the number of elements 17 that are rendered. There are eight iterations over each list, regardless of 18 the actual size of each list. When the actual list runs out of elements, the word 19 "undefined" is output. 20 <!-- iterates over the Array elements, which are Vectors --> 21 <netui-data:repeater dataSource="{pageFlow.vecArr}"> 22 <hr> 23 <!-- interates over the Vector elements, which are Strings --> 24 <netui-data:repeater dataSource="{container.item}"> 25 <!-- Requires that there are 8 iterations, regardless of the size of Vector. --> 26 <netui-data:pad minRepeat="8" padText="undefined<br>"/> 27 <netui-data:repeaterItem> 28 <!-- Prints out the individual Strings. 29 Note that the two occurances of "{container.item}" in this sample are not synonymous: 30 the first occurance refers to the individual Vectors in the Vector[], 31 the second refers to the individual elements within a Vector. --> 32 <netui:label value="{container.item}" /> 33 <br> 34 </netui-data:repeaterItem> 35 </netui-data:repeater> 36 </netui-data:repeater> 37 </blockquote> 38 <hr> 39 <netui:anchor href="/WebApp/tagSamples/tagSamplesController.jpf">Return to Tag Samples</netui:anchor> 40 </body> 41 </netui:html>`