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/

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: Navigation
10         </title>
11         <link href="../resources/css/style.css" type="text/css" rel="stylesheet"/>
12     </head>
13     <body>
14         <jsp:include page="/resources/jsp/header.jsp"/> 
15         
16         <h3>Web Application Samples: Navigation</h3>
17         <p>These samples show how control navigation in Page Flow applications.</p>
18         <blockquote>
19         <hr>
20         <h4><netui:anchor action="toSimpleNavigation">Navigating Between Page A and Page B</netui:anchor></h4>
21         <p>This sample shows simple navigation between pages using action methods.  
22         When the 
23         navigation links are clicked, action methods are invoked, which forward
24         the user to other JSP pages. 
25         <p>This sample also shows how to invoke action methods from HTML files, 
26         even when those HTML files
27         have no special JSP capabilities. 
28         <p>Source code: <code>SamplesApp/WebApp/navigation/simpleNavigation/<code>
29         <hr>
30         <h4><netui:anchor action="toControllerFileNavigation">Define Navigation in the Controller file, not the JSPs</netui:anchor></h4>
31         <p>This sample shows how you can update links by changing the Java code in the 
32         Controller file without changing the code in your JSP pages.  This helps maintain
33         a separation between presentation code (in the JSP pagesand data processing code (in the Controller file).
34         <p>Source code: <code>SamplesApp/WebApp/navigation/controllerFileNavigation/</code>
35         <hr>
36         <h4><netui:anchor action="toSelectTagNavigation">Dropdown Navigation</netui:anchor></h4>
37         <p>Shows a dropdown menu of links to other pages.
38         <p>Source code: <code>SamplesApp/WebApp/navigation/selectTagNavigation/</code>
39         <hr>
40         <h4><netui:anchor action="toNesting">Nesting Page Flows</netui:anchor></h4>
41         <p>Shows how to nest one Page Flow within another. 
42         <p>Nesting makes it easy to pass data from one Page Flow (the nested Page Flowto
43         another (the nesting Page Flow).
44         <p>Source code: <code>SamplesApp/WebApp/navigation/nesting/</code>
45         <hr>
46         <h4><netui:anchor action="toHandleException">Handling Exceptions</netui:anchor></h4>
47         <p>Shows how to forward to an error.jsp page when an exception occurs.
48         <p>Source code: <code>SamplesApp/WebApp/navigation/handleException/</code>
49         <hr>
50         </blockquote>
51         <netui:anchor action="toPageFlowSamples">Back to Web Application Samples Home</netui:anchor>
52     </body>
53 </netui:html>