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/navigation/controllerFileNavigation/

Sample Source Code


01 <!--Generated by Weblogic Workshop-->
02 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
03 <%@ page language="java" contentType="text/html;charset=UTF-8"%>
04 <%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%>
05 <%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
06 <html>
07   <head>
08     <netui:base/>
09     <link href="../../resources/css/style.css" type="text/css" rel="stylesheet"/>
10   </head>
11   <body style="margin:0">
12     <jsp:include page="/resources/jsp/header.jsp"/>
13     <br/>
14     <br/>
15 
16     <table width=500 align="center" border=cellspacing=cellpadding=5>
17         <tr>
18             
19             <td colspan=2>
20                     <p><b>Making it Easy to Update Navigation</b></p> <p>&nbsp;</p>
21           <p>This simple example shows how content can be presented in a JSP, while leaving
22                     navigation code to the Page Flow Controller file. In this case, the value of a
23                     "ThisWeeksSpecial" action method in the JPF file determines which page is seen
24                     when the user clicks the Let's Go button.</p> <p>&nbsp;</p>
25                 </td>
26             </tr>
27         
28 
29         <tr bgcolor=navy valign="top">
30             <td><img src="../../resources/images/travel.jpg" align=left></td>
31             <td>
32         <p class="white-title">Welcome to Adventure Travels</p>
33         <p class="white-text">We offer fun, challenging water-sport 
34         excursions to exotic locations...</p>
35         
36         <p class="white-text">Special discounts apply to some trips
37         that are departing soon (airfare included).</p>
38         
39         <hr width=95% size=align=left>
40         
41        <p class="white-text">Learn more about This Week's Special!</p>
42 
43         
44         <netui:form action="ThisWeeksSpecial">
45             <netui:button type="submit" value="Let's Go!" />
46         </netui:form>
47         
48                
49             </td>
50         </tr>
51     
52     <tr>
53     <td>
54         <p><b>Return to the Samples Home Page</b>&nbsp;&nbsp;
55           <netui:form action="done">
56             <netui:button value="Home" type="submit"/>
57           </netui:form> 
58           </p>
59     </td>
60     </tr>
61     
62      </table>
63     
64   </body>
65 </html>