# UpdateItems.jsp Sample

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

## 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 <% 06 response.setHeader( "Pragma", "No-cache" ); 07 response.setHeader( "Cache-Control", "no-cache" ); 08 response.setHeader( "Expires", "1" ); 09 %> 10 <netui-template:template templatePage="/resources/jsp/template.jsp"> 11 <netui-template:setAttribute value="ItemsRowSetControl - Edit View" name="title"/> 12 <netui-template:section name="bodySection"> 13 <blockquote> 14 <span class="pagehead"> 15 <netui:label value="ItemsRowSetControl - Edit View"/> 16 </span> 17 <br/> 18 <netui:form action="submitUpdate"> 19 <netui:parameterMap map="{pageFlow.sortFilterService.rowIdQueryParamsMap}"/> 20 <table> 21 <tr class="tablebody"> 22 <td>Itemnumber:</td> 23 <td> 24 <netui:content value="{actionForm.itemnumber}"/> 25 </td> 26 </tr> 27 <tr class="tablebody"> 28 <td>Itemname:</td> 29 <td> 30 <netui:textBox dataSource="{actionForm.itemname}"/> 31 </td> 32 </tr> 33 <tr class="tablebody"> 34 <td>Quantityavailable:</td> 35 <td> 36 <netui:textBox dataSource="{actionForm.quantityavailable}"/> 37 </td> 38 </tr> 39 <tr class="tablebody"> 40 <td>Price:</td> 41 <td> 42 <netui:textBox dataSource="{actionForm.price}"/> 43 </td> 44 </tr> 45 </table> 46 <br/> 47 <netui:imageButton src='<%=request.getContextPath() + "/resources/images/update.gif"%>'/> 48 &nbsp;&nbsp; 49 <netui:imageAnchor action="cancelUpdate" border="0" src='<%=request.getContextPath() + "/resources/images/cancel.gif"%>'> 50 <netui:parameterMap map="{pageFlow.sortFilterService.queryParamsMap}"/> 51 </netui:imageAnchor> 52 </netui:form> 53 </blockquote> 54 </netui-template:section> 55 </netui-template:template>`