# NewManufacturer.jsp Sample

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

## Sample Location

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

BEA_HOME/weblogic81/samples/workshop/SamplesApp/EJBs_ClientApps/valueObject/

## 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 Web Application Page 09 </title> 10 </head> 11 <body> 12 <p>Please enter a new manufacturer:</p> 13 <netui:form action="addNewManufacturer"> 14 <table> 15 <tr valign="top"> 16 <td>List Number:</td> 17 <td> 18 <netui:textBox dataSource="{actionForm.listnumber}"/> 19 </td> 20 </tr> 21 <tr valign="top"> 22 <td>Name:</td> 23 <td> 24 <netui:textBox dataSource="{actionForm.name}"/> 25 </td> 26 </tr> 27 <tr valign="top"> 28 <td>US Manufacturer:</td> 29 <td> 30 <netui:select defaultValue="1" dataSource="{actionForm.usManufacturer}"> 31 <netui:selectOption value="0">No</netui:selectOption>> 32 <netui:selectOption value="1">Yes</netui:selectOption>> 33 </netui:select> 34 </td> 35 </tr> 36 </table> 37 <br/>&nbsp; 38 <netui:button value="Add" type="submit"/> 39 </netui:form> 40 <p><font size="-1">After you enter the information and click the 'Add' button, 41 the entered information is stored in a 'ManufacturerVO' value object and transmitted 42 to the AdminBean EJB. The AdminBean's addManufacturer method in turn invokes the 43 Manufacturer EJB create method and attempts to store the new manufacturer information. 44 This attempt will fail if the entered list number (which is the Manufacturer EJB's 45 primary key) is not unique.</font></p> 46 </body> 47 </netui:html>`