Select.jsp Sample

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

Sample Source Code


01 <%@ page language="java" contentType="text/html;charset=UTF-8"%>
02 <%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
03 
04 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
05 <html>
06   <head>
07     <title>Select an Item</title>
08     <link href="/WebApp/resources/css/style.css" type="text/css" rel="stylesheet"/>     
09   </head>
10   <body>
11     <jsp:include page="/resources/jsp/header.jsp"/>
12     <h3>Dynamically Populated Dropdown Sample</h3>
13     <p>The dropdown below has been dynamically populated from a database.
14     <blockquote>
15 
16         <h3>Select an Item</h3>
17         <netui:form action="showSelection">
18             <netui:select dataSource="{actionForm.selectedOption}" 
19                 optionsDataSource="{actionForm.itemOptions}"/>
20             <netui:button>Submit</netui:button>
21         </netui:form>
22 
23     </blockquote>
24     <hr>
25     <p><netui:anchor href="/WebApp/handlingData/handlingDataController.jpf">
26     Back to Handling Data Samples</netui:anchor>
27   </body>
28 </html>