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/content/
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 </head>
11 <body>
12 <jsp:include page="/resources/jsp/header.jsp"/>
13 <h3>Content Tag Sample</h3>
14
15 <p>The following <netui:content> tags get their values from the Controller file.</p>
16 <blockquote>
17 First Name: <netui:content value="{pageFlow._firstname}"/><br>
18 Last Name: <netui:content value="{pageFlow._lastname}"/><br>
19 Current Date and Time: <netui:content value="{pageFlow._date}"/>
20 </blockquote>
21
22
23 <hr>
24 <netui:anchor href="/WebApp/tagSamples/tagSamplesController.jpf">Return to Tag Samples</netui:anchor>
25 </body>
26 </netui:html>
|