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

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>ParameterMap Tag Sample</h3>
14     
15         <blockquote>
16         <p>Clicking on the link below will search the Google search engine with the query "Socrates"
17         Only Greek language web sites that have been updated in the past months will be searched.
18         <p>The link uses a &lt;netui:parameterMap> tag to define the URL parameters.
19         <p>
20         <netui:anchor href="http://www.google.com/search">
21             Search Greek language web sites updated in the last three months with the query "Socrates".
22             <netui:parameterMap map="{pageFlow.hashMap}"/>
23         </netui:anchor>
24         
25         </blockquote>
26         <hr>
27         <netui:anchor href="/WebApp/tagSamples/tagSamplesController.jpf">Return to Tag Samples</netui:anchor>
28     </body>
29 </netui:html>