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/tagSamples/netui_databinding/declarePageInput/

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-data:declarePageInput name="Products" type="java.lang.String[]"/ -->
06 <netui:html>
07     <head>
08         <netui:base/>
09         <title>
10             Declare Page Input Sample
11         </title>
12     <link href="../../../resources/css/style.css" type="text/css" rel="stylesheet"/>        
13     </head>
14     <body>
15     <jsp:include page="/resources/jsp/header.jsp"/> <br/> 
16         
17     <blockquote>
18     
19         <h3>Declare Page Input Sample</h3>
20         
21         <p>This sample shows how you can use the &lt;netui-data:declarePageInput>
22         tag to accomplish several tasks.</p>
23         
24         <ul type="square">
25         
26         <li><p>The &lt;netui-datat:declarePageInput> allows you to declare 
27         variables that will be passed from the page flow controller to the 
28         JSP page. A variable so declared can be accessed from the <i>pageInput</i> data
29         binding context. </li>
30         
31         <li><p>The presence of &lt;netui-data:declarePageInput> tags in a JSP file
32         helps to indicate clearly the type of data expected at run time. This 
33         information about the incoming data helps your team understand any 
34         data dependencies a given JSP page may have.</li>
35         
36         <li><p>At design time each &lt;netui-data:declarePageInput> tag, once added 
37         to a JSP page, enables an additional WebLogic Workshop IDE feature to discover properties 
38         about your source code. 
39         <p>For example, the presence of a  
40         &lt;netui-data:declarePageInput> tag on a JSP page causes 
41         the Workshop IDE to display the variable declard in the &lt;netui-data:declarePageInput> tag
42         in the Data Palette's "Page Inputs" section.  
43         Once the variable is displayed in the Data Palette, you can (1drag and drop the variable from
44         the Data Palette, and (2set properties on the variable.</li>
45         
46         </ul> 
47         
48         <hr width="90%">
49         
50         <h3>Start Declare Page Input Sample...</h3>
51         
52         <p>In the first part of this sample, the target page, simple.jsp, 
53         contains three &lt;netui-data:declarePageInput> 
54         tags which declare and initialize three variables that reside on the page flow controller file
55         PageInputController.jpf.</p>
56         <p>&nbsp;</p>
57         <p><netui:anchor action="simple">To simple.jsp</netui:anchor><br/>       
58         
59         </blockquote>
60         <hr>
61         <netui:anchor href="/WebApp/tagSamples/tagSamplesController.jpf">Return to Tag Samples</netui:anchor>
62  
63     </body>
64 </netui:html>