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/security/roleBasedSecurity/

Sample Source Code


01 <!--Generated by WebLogic Workshop-->
02 <%@ page language="java" contentType="text/html;charset=UTF-8"%>
03 <%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%>
04 <%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
05 <%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%>
06 <netui:html>
07     <head>
08         <title>
09             Role Based Security
10         </title>
11         <link href="/WebApp/resources/css/style.css" type="text/css" rel="stylesheet"/>
12     </head>
13     <body>
14         <jsp:include page="/resources/jsp/header.jsp"/> 
15         <h3>Role-based Security Sample</h3>
16         <p>Clicking the link below will attempt to forward you to the Administrator's page.
17         <p>If you are not logged in with the Administrator's role, you will be forwarded to the login pages.
18         <p>Upon successfully logging in, you will be re-forwarded to the Administrator's page.
19         <blockquote>
20         <p>
21         <netui:anchor action="toAdminPage">To the Administrators' page</netui:anchor>
22         </p>
23         </blockquote>
24     </body>
25 </netui:html>