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

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>Parameter Tag Sample</h3>
14     
15         <blockquote>
16         <p>Clicking on the link below will search the Google search engine with the query "Socrates".
17         <p>The link uses a &lt;netui:parameter> tag to define the URL parameter.
18         <p>
19         <netui:anchor href="http://www.google.com/search">
20             Search Google with the query "Socrates"
21             <netui:parameter name="q" value="Socrates" />
22         </netui:anchor>
23         </blockquote>
24     
25         <hr>
26         <netui:anchor href="/WebApp/tagSamples/tagSamplesController.jpf">Return to Tag Samples</netui:anchor>
27     </body>
28 </netui:html>