spring ide enabled, jsp polish

This commit is contained in:
Keith Donald
2007-04-01 16:22:30 +00:00
parent 0213bf6853
commit 77aeb8a1ef
9 changed files with 150 additions and 176 deletions

View File

@@ -1,21 +0,0 @@
<%@ page contentType="text/html" %>
<%@ page session="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<html>
<head>
<title>Calculate your Age</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
<div id="logo">
<img src="images/spring-logo.jpg" alt="Logo">
</div>
<div id="navigation">
</div>

View File

@@ -1,21 +0,0 @@
<%@ page contentType="text/html" %>
<%@ page session="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<html>
<head>
<title>Upload a file</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
<div id="logo">
<img src="images/spring-logo.jpg" alt="Logo">
</div>
<div id="navigation">
</div>

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<webflow-project-description>
<configs>
<config>
<file>src/main/webapp/WEB-INF/sampleA.xml</file>
<name>sampleA</name>
</config>
<config>
<file>src/main/webapp/WEB-INF/sampleB.xml</file>
<name>sampleB</name>
</config>
</configs>
</webflow-project-description>

View File

@@ -1,53 +1,66 @@
<%@ include file="includeTop.jsp" %>
<%@ page contentType="text/html" %>
<%@ page session="false" %>
<html>
<head>
<title>Sample A Flow</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
<div id="logo">
<img src="images/spring-logo.jpg" alt="Logo">
</div>
<div id="content">
Sample A Flow
<hr>
Flow input was: ${input}<br>
<br>
From Sample A you may terminate Sample A and launch Sample B from an end state of Sample A.
You may also pass Sample B input. This can be done using:
<ul>
Flow input was: ${input}
<p>
From Sample A you may terminate Sample A and launch Sample B from an end state of Sample A.
You may also pass Sample B input. This can be done using:
</p>
<table>
<tr>
<td>an anchor:</td>
<td>
<a href="flowController.htm?_flowExecutionKey=${flowExecutionKey}&_eventId=end-A-and-launch-B&input=someInputForSampleB">
End Sample A and Launch Sample B
</a>
</td>
</tr>
<tr>
<td valign="top">or a form:</td>
<td>
<form action="flowController.htm" method="post">
<table>
<tr>
<td>
<input type="text" name="input" value="someInputForSampleB">
</td>
</tr>
<tr>
<td class="buttonBar">
<input type="hidden" name="_flowExecutionKey" value="${flowExecutionKey}">
<input type="submit" name="_eventId_end-A-and-launch-B" value="End Sample A and Launch Sample B">
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<p>
Alternatively, you may spawn Sample B as a sub flow of Sample A. In this case a flow
attribute mapper maps the input stored in the FlowScope of Sample A down to the spawning subflow
Here again you have the option of using:
</p>
<table>
<tr>
<td>an anchor:</td>
<td>
<a href="<c:url value="/flowController.htm?_flowExecutionKey=${flowExecutionKey}&_eventId=end-A-and-launch-B&input=someInputForSampleB"/>">
End Sample A and Launch Sample B
</a>
</td>
</tr>
<tr>
<td valign="top">or a form:</td>
<td>
<table>
<form action="flowController.htm" method="post">
<tr>
<td>
<input type="text" name="input" value="someInputForSampleB">
</td>
</tr>
<tr>
<td class="buttonBar">
<input type="hidden" name="_flowExecutionKey" value="${flowExecutionKey}">
<input type="submit" name="_eventId_end-A-and-launch-B" value="End Sample A and Launch Sample B">
</td>
</tr>
</form>
</table>
</td>
</tr>
</table>
</ul>
Alternatively, you may spawn Sample B as a sub flow of Sample A. In this case a flow
attribute mapper maps the input stored in the FlowScope of Sample A down to the spawning subflow
Here again you have the option of using:
<ul>
<table>
<tr>
<td>an anchor:</td>
<td>
<a href="<c:url value="/flowController.htm?_flowExecutionKey=${flowExecutionKey}&_eventId=launch-B-as-subflow"/>">
<a href="flowController.htm?_flowExecutionKey=${flowExecutionKey}&_eventId=launch-B-as-subflow">
Launch Sample B as a Sub Flow
</a>
</td>
@@ -55,27 +68,27 @@
<tr>
<td valign="top">or a form:</td>
<td>
<table>
<form action="flowController.htm" method="post">
<table>
<tr>
<td class="buttonBar">
<input type="hidden" name="_flowExecutionKey" value="${flowExecutionKey}">
<input type="submit" name="_eventId_launch-B-as-subflow" value="Launch Sample B as a Sub Flow">
</td>
</tr>
</form>
</table>
</form>
</td>
</tr>
</table>
</ul>
Yet another option is to launch Sample B as a top-level flow without involving Sample A as:
<ul>
<p>
Yet another option is to launch Sample B as a top-level flow without involving Sample A as:
</p>
<table>
<tr>
<td>an anchor:</td>
<td>
<a href="<c:url value="/flowController.htm?_flowId=sampleB&input=someInputForSampleB"/>">
<a href="flowController.htm?_flowId=sampleB&input=someInputForSampleB">
Launch Sample B
</a>
</td>
@@ -83,8 +96,8 @@
<tr>
<td valign="top">or a form:</td>
<td>
<table>
<form action="flowController.htm" method="post">
<table>
<tr>
<td>
<input type="text" name="input" value="someInputForSampleB">
@@ -96,15 +109,19 @@
<input type="submit" value="Launch Sample B">
</td>
</tr>
</form>
</table>
</form>
</td>
</tr>
</table>
</ul>
<form action="<c:url value="/index.html"/>">
<form action="index.html">
<INPUT type="submit" value="Home">
</form>
</div>
<%@ include file="includeBottom.jsp" %>
<div id="copyright">
<p>&copy; Copyright 2004-2007, <a href="http://www.springframework.org">www.springframework.org</a>, under the terms of the Apache 2.0 software license.</p>
</div>
</body>
</html>

View File

@@ -1,45 +1,60 @@
<%@ include file="includeTop.jsp" %>
<%@ page contentType="text/html" %>
<%@ page session="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
<title>HigherLower - Enter Guess</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
<div id="content">
Sample B Flow
<hr>
Flow input was: ${input}<BR>
Flow input was: ${input}
<c:if test="${!flowExecutionContext.activeSession.root}">
<br>
Sample B is now running as a sub flow within Sample A. This means we can end Sample B and
return to the parent flow. We can do this using either:
<ul>
<p>
Sample B is now running as a sub flow within Sample A. This means we can end Sample B and
return to the parent flow. We can do this using either:
</p>
<table>
<tr>
<td>an anchor:</td>
<td>
<a href="<c:url value="/flowController.htm?_flowExecutionKey=${flowExecutionKey}&_eventId=end"/>">
End Sample B
</a>
</td>
</tr>
<tr>
<td valign="top">or a form:</td>
<td>
<table>
<form action="flowController.htm" method="post">
<tr>
<td class="buttonBar">
<input type="hidden" name="_flowExecutionKey" value="${flowExecutionKey}">
<input type="submit" name="_eventId_end" value="End Sample B">
</td>
</tr>
</form>
</table>
</td>
</tr>
<tr>
<td>an anchor:</td>
<td>
<a href="flowController.htm?_flowExecutionKey=${flowExecutionKey}&_eventId=end">
End Sample B
</a>
</td>
</tr>
<tr>
<td valign="top">or a form:</td>
<td>
<form action="flowController.htm" method="post">
<table>
<tr>
<td class="buttonBar">
<input type="hidden" name="_flowExecutionKey" value="${flowExecutionKey}">
<input type="submit" name="_eventId_end" value="End Sample B">
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</ul>
</c:if>
<hr>
<form action="<c:url value="/index.html"/>">
<form action="index.html">
<input type="submit" value="Home">
</form>
</div>
<%@ include file="includeBottom.jsp" %>
<div id="copyright">
<p>&copy; Copyright 2004-2007, <a href="http://www.springframework.org">www.springframework.org</a>, under the terms of the Apache 2.0 software license.</p>
</div>
</body>
</html>

View File

@@ -1,21 +0,0 @@
<%@ page contentType="text/html" %>
<%@ page session="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<html>
<head>
<title>Launch a flow</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
<div id="logo">
<img src="images/spring-logo.jpg" alt="Logo">
</div>
<div id="navigation">
</div>

View File

@@ -13,6 +13,7 @@
<P>
You can launch the Sample A flow as a top-level flow and pass it input using
request parameters. This can be done using
</P>
<table>
<tr>
<td>an anchor:</td>
@@ -21,8 +22,8 @@
<tr>
<td valign="top">or a form:</td>
<td>
<table>
<form action="flowController.htm" method="post">
<table>
<tr>
<td><INPUT type="text" name="input" value="someInputForSampleA"></td>
</tr>
@@ -32,14 +33,14 @@
<INPUT type="submit" value="Start Sample A">
</td>
</tr>
</form>
</table>
</form>
</td>
</tr>
</table>
</P>
<P>
The same is true for Sample B:
</P>
<table>
<tr>
<td>an anchor:</td>
@@ -48,8 +49,8 @@
<tr>
<td valign="top">or a form:</td>
<td>
<table>
<form action="flowController.htm" method="post">
<table>
<tr>
<td><INPUT type="text" name="input" value="someInputForSampleB"></td>
</tr>
@@ -59,12 +60,11 @@
<INPUT type="submit" value="Start Sample B">
</td>
</tr>
</form>
</table>
</form>
</td>
</tr>
</table>
</P>
</table>
</DIV>
<HR>
<DIV align="right"></DIV>

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<webflow-project-description>
<configs>
<config>
<file>src/main/webapp/WEB-INF/itemlist.xml</file>
<name>itemlist</name>
</config>
<config>
<file>src/main/webapp/WEB-INF/itemlist-alternate.xml</file>
<name>itemlist-alternate</name>
</config>
</configs>
</webflow-project-description>

View File

@@ -1,21 +0,0 @@
<%@ page contentType="text/html" %>
<%@ page session="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<html>
<head>
<title>Create an item list</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="<c:url value='/style.css'/>" type="text/css">
</head>
<body>
<div id="logo">
<img src="<c:url value='/images/spring-logo.jpg'/>" alt="Spring Logo">
</div>
<div id="navigation">
</div>