# Grid.jsp Sample

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

## Sample Location

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

BEA_HOME/weblogic81/samples/workshop/SamplesApp/WebApp/handlingData/binaryFlow/

## 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-template:template templatePage="/resources/jsp/grid_template.jsp"> 06 <netui-template:setAttribute value="test - Grid View" name="title"/> 07 <netui-template:section name="bodySection"> 08 <blockquote> 09 <span class="pagehead"> 10 <netui:label value="Grid View"/> 11 </span> 12 <br/> 13 <font style="color:#ff0000;font-size:10pt;">Click Insert below, and upload a binary image file: GIF, JPG, BMP</font> 14 <br/> 15 <netui-data:grid dataSource="{pageFlow.allRows}" name="{pageFlow.gridName}"> 16 <netui-data:gridStyle styleClassPrefix="gridStyle"/> 17 <netui-data:pager renderInHeader="true" action="pageAction" renderInFooter="true"/> 18 <netui-data:columns filterAction="begin" sortAction="begin"> 19 <netui-data:anchorColumn action="detailsDocumentContent" addRowId="true" title="Details"/> 20 <netui-data:anchorColumn action="updateDocumentContent" addRowId="true" title="Edit"/> 21 <netui-data:basicColumn filterable="true" title="Id" sortable="true" name="id"/> 22 <netui-data:basicColumn filterable="true" title="Versioned_object_id" sortable="true" name="versioned_object_id"/> 23 <netui-data:basicColumn filterable="true" title="Object_type" sortable="true" name="object_type"/> 24 <netui-data:basicColumn filterable="true" title="Name" sortable="true" name="name"/> 25 <netui-data:imageColumn src="/WebApp/handlingData/binaryFlow/showImage.jsp?photoid={container.item.id}" title="Content"/> 26 <netui-data:basicColumn filterable="true" title="Content_type" sortable="true" name="content_type"/> 27 <netui-data:basicColumn filterable="true" title="Containment_of_content" sortable="true" name="containment_of_content"/> 28 <netui-data:basicColumn filterable="true" title="File_size" sortable="true" name="file_size"/> 29 <netui-data:basicColumn filterable="true" title="File_last_modified" sortable="true" name="file_last_modified"/> 30 </netui-data:columns> 31 </netui-data:grid> 32 <netui:imageAnchor action="insertDocumentContent" align="center" border="0" src="/WebApp/resources/images/insert.gif"> 33 Insert 34 </netui:imageAnchor> 35 </blockquote> 36 </netui-template:section> 37 <netui-template:section name="navBackSection"> 38 <hr> 39 <p><netui:anchor href="/WebApp/handlingData/handlingDataController.jpf"> 40 Back to Handling Data Samples</netui:anchor> 41 </netui-template:section> 42 </netui-template:template>`