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/getData/

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             index.jsp
09         </title>
10         <link href="../../../resources/css/style.css" type="text/css" rel="stylesheet"/>
11     </head>
12     <body>
13         <jsp:include page="/resources/jsp/header.jsp"/> 
14         <h3>GetData Tag Sample</h3>
15         <blockquote>
16         <netui-data:getData resultId="extractedData" value="{pageFlow.myData}"/>
17         
18         <p>The following message was extracted from the Controller file and made available to the 
19         JSP scriptlet using the &lt;netui-data:getData> tag:
20         
21         <p>&nbsp;        
22         <p><%= pageContext.getAttribute("extractedData")%>
23         </blockquote>
24         <hr>
25         <netui:anchor href="/WebApp/tagSamples/tagSamplesController.jpf">Return to Tag Samples</netui:anchor>
26     </body>
27 </netui:html>