Results.jsp Sample
This topic inludes the source code for the Results.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/scriptContainer/
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-data:declarePageInput name="names" type="formAnchorParams.ScriptContainerController.NameBean"></netui-data:declarePageInput>
07 <netui:html>
08 <head>
09 <title>
10 Script Container Sample: results.jsp Page
11 </title>
12 <link href="../../../resources/css/style.css" type="text/css" rel="stylesheet"/>
13 </head>
14 <body style="margin:0">
15
16 <jsp:include page="/resources/jsp/header.jsp"/> <br/>
17
18 <blockquote>
19
20 <h3>Script Container Sample: results.jsp Page</h3>
21
22 <p>Each form post is directed to this page. Below you see (on the rendered JSP) the Scope
23 and text of the Anchor that submitted the form. The anchor text is written to the request
24 through a parameter on the <netui:anchor>. The scope is written to the request through
25 a <netui:parameter> in the form. The LastName and FirstName are user input into the
26 selected form.</p>
27
28 <p><b>Anchor: </b> <netui:label value="{url.anchorForm}"></netui:label> <br />
29 <b>Scope: </b> <netui:label value="{url.scope}"></netui:label> <br /><br />
30 <b>LastName: </b> <netui:label value="{pageInput.names.lastName}"></netui:label><br />
31 <b>FirstName: </b> <netui:label value="{pageInput.names.firstName}"></netui:label><br />
32 </p>
33
34 <hr />
35
36 <p>
37 <netui:anchor action="begin">
38 <b>Start scriptContainer Sample Again</b>
39 </netui:anchor>
40 </p>
41
42 <p> </p>
43
44 <p>Or, return to Samples Home Page
45 <netui:form action="done">
46 <netui:button value="Home" type="submit"/>
47 </netui:form>
48 </p>
49
50 </blockquote>
51
52 </body>
53 </netui:html>
|