# InsertDocumentContent.jsp Sample

This topic inludes the source code for the InsertDocumentContent.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 - Insert View" name="title"/> 07 <netui-template:section name="bodySection"> 08 <blockquote> 09 <span class="pagehead"> 10 <netui:label value="Insert View"/> 11 </span> 12 <br/> 13 <!-- 14 Many of the insert fields have been commented out because 15 default values for these fields are calculated on insertion of a new record. 16 --> 17 <netui:form action="submitInsert" enctype="multipart/form-data"> 18 <netui:parameterMap map="{pageFlow.sortFilterService.rowIdQueryParamsMap}"/> 19 <table> 20 <!--tr class="tablebody"> 21 <td>Id: <font style="color:#ff0000;">[required field: must 22 be a unique integer]</font></td> 23 <td> 24 <netui:textBox dataSource="{actionForm.id}"/> 25 </td> 26 </tr> 27 <tr class="tablebody"> 28 <td>Versioned_object_id: <font style="color:#ff0000;">[required 29 field: any integer]</font></td> 30 <td> 31 <netui:textBox dataSource="{actionForm.versioned_object_id}"/> 32 </td> 33 </tr> 34 <tr class="tablebody"> 35 <td>Object_type: <font style="color:#ff0000;">[required 36 field: any string]</font></td> 37 <td> 38 <netui:textBox dataSource="{actionForm.object_type}"/> 39 </td> 40 </tr> 41 <tr class="tablebody"> 42 <td>Name: [required]</td> 43 <td> 44 <netui:textBox dataSource="{actionForm.name}"/> 45 </td> 46 </tr> 47 <tr class="tablebody"> 48 <td>Content_type:</td> 49 <td> 50 <netui:textBox dataSource="{actionForm.content_type}"/> 51 </td> 52 </tr> 53 <tr class="tablebody"> 54 <td>Containment_of_content: <font style="color:#ff0000;">[required 55 field: any integer]</font></td> 56 <td> 57 <netui:textBox dataSource="{actionForm.containment_of_content}"/> 58 </td> 59 </tr--> 60 <tr class="tablebody"> 61 <td>Content: <font style="color:#ff0000;">Upload a binary image file: GIF, JPG, BMP</font></td> 62 <td> 63 <netui:fileUpload dataSource="{actionForm.contentUp}"/> 64 </td> 65 </tr> 66 <!--tr class="tablebody"> 67 <td>File_size:</td> 68 <td> 69 <netui:textBox dataSource="{actionForm.file_size}"/> 70 </td> 71 </tr> 72 <tr class="tablebody"> 73 <td>File_last_modified:</td> 74 <td> 75 <netui:textBox dataSource="{actionForm.file_last_modified}"/> 76 </td> 77 </tr--> 78 </table> 79 </br> 80 <netui:imageButton src="/WebApp/resources/images/insert.gif"/> 81 &nbsp;&nbsp; 82 <netui:imageAnchor action="cancelInsert" border="0" src="/WebApp/resources/images/cancel.gif"> 83 <netui:parameterMap map="{pageFlow.sortFilterService.queryParamsMap}"/> 84 </netui:imageAnchor> 85 </netui:form> 86 </blockquote> 87 </netui-template:section> 88 <netui-template:section name="navBackSection"> 89 <hr> 90 <p><netui:anchor href="/WebApp/handlingData/handlingDataController.jpf"> 91 Back to Handling Data Samples</netui:anchor> 92 </netui-template:section> 93 </netui-template:template>`