SpecifyMaze.jsp Sample
This topic inludes the source code for the SpecifyMaze.jsp Sample.
Sample Location
This sample is located in the following directory in your WebLogic Workshop installation:
BEA_HOME/weblogic81/samples/workshop/SamplesApp/WebApp/handlingData/traditional_vs_pageFlow_webApp/pageFlow_webApp/
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 Web Application Page
09 </title>
10 </head>
11 <body>
12 <h1>Page Flow Version: specifyMaze.jsp</h1>
13 <p>
14
15 <h2>Display Text Maze</h2>
16 <netui:form action="printRandomMaze" method="post">
17 Enter maze size: <br>
18 Rows: <netui:textBox dataSource="{actionForm.rows}" /><br>
19 Cols: <netui:textBox dataSource="{actionForm.cols}" /><br>
20 <netui:button type="submit"
21 value="Submit"/>
22 </netui:form>
23 <h2>Display Graphical Maze</h2>
24 <netui:form action="getRandomMaze" method="post">
25 Enter maze size: <br>
26 Rows: <netui:textBox dataSource="{actionForm.rows}" /><br>
27 Cols: <netui:textBox dataSource="{actionForm.cols}" /><br>
28 <netui:button type="submit"
29 value="Submit"/>
30 </netui:form>
31
32 <hr>
33 <netui:anchor
34 href="/WebApp/handlingData/traditional_vs_pageFlow_webApp/traditional_vs_pageFlow_webAppController.jpf">
35 Back to Traditional JSP Applications Vs. Page Flow Applications Sample</netui:anchor>
36 </body>
37 </netui:html>
|