Index.jsp Sample
This topic inludes the source code for the Index.jsp Sample.
Sample Location
This sample is located in the following directory in your WebLogic Workshop installation:
BEA_HOME/weblogic81/samples/workshop/SamplesApp/WebApp/controls/
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:base />
06 <netui:html>
07 <head>
08 <title>
09 Web Application Samples: Controls
10 </title>
11 <link href="/WebApp/resources/css/style.css" type="text/css" rel="stylesheet"/>
12 </head>
13 <body>
14 <jsp:include page="/resources/jsp/header.jsp"/>
15 <h3>Web Application Samples: Using Controls</h3>
16 <p>These samples show how to use controls to access resources.</p>
17 <p>A theme of all these samples is the separation between data <i>presentation</i>
18 (handled by the JSP pages)
19 and data <i>processing</i> (handled by the Controller files). None of the JSP pages
20 containing any of the control-querying logic. Instead the logic
21 is contained in the Controller files. This helps maintain a strong seperation between data presentation
22 and data processing.
23 <blockquote>
24 <hr>
25 <p><netui:anchor action="toDatabase">Calling a Database</netui:anchor>
26 <p>This sample shows how to (1) query a database using a database control and (2) display the results on a JSP page.
27 <hr>
28 <p><netui:anchor action="toDatabase">Calling a Database (Through a Wrapped Database Control)</netui:anchor>
29 <p>In cases where a database control returns Iterator (and related) objects, the Controller file cannot
30 directly call the database control. Instead the traffic between the Controller file and the database control
31 must be conducted through an intermediary wrapper class. This sample shows how to set up an intermediary wrapper
32 class between the Controller file and the database control.
33 <hr>
34 <p><netui:anchor action="toHelloWorld">Calling a Synchronous Web Service</netui:anchor>
35 <p>This sample shows how to query a synchronous Web Serivce using a control.
36 <hr>
37 <p><netui:anchor action="toPolling">Calling an Asynchronous Web Service</netui:anchor>
38 <p>This sample shows how to query an asynchronous Web Service using a control.
39 </blockquote>
40
41 <hr>
42 <p><netui:anchor action="toPageFlowSamples">Back to Web Application Samples Home</netui:anchor>
43 </body>
44 </netui:html>
|