You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beehive.apache.org by ri...@apache.org on 2005/09/08 08:52:28 UTC
svn commit: r279523 - in /beehive/trunk:
docs/forrest/release/src/documentation/content/xdocs/netui/tutorial_pageflow.xml
netui/src/scoping/org/apache/beehive/netui/pageflow/scoping/ScopedServletUtils.java
Author: rich
Date: Wed Sep 7 23:52:16 2005
New Revision: 279523
URL: http://svn.apache.org/viewcvs?rev=279523&view=rev
Log:
This is a patch from Carlin Rogers to address http://issues.apache.org/jira/browse/BEEHIVE-910 : NETUI Tutorial: update displayData.jsp to display "sport" form field besides "name" and "age". It also includes a JavaDoc fix in ScopedServletUtils.
tests: build.release in docs/forrest (WinXP)
Modified:
beehive/trunk/docs/forrest/release/src/documentation/content/xdocs/netui/tutorial_pageflow.xml
beehive/trunk/netui/src/scoping/org/apache/beehive/netui/pageflow/scoping/ScopedServletUtils.java
Modified: beehive/trunk/docs/forrest/release/src/documentation/content/xdocs/netui/tutorial_pageflow.xml
URL: http://svn.apache.org/viewcvs/beehive/trunk/docs/forrest/release/src/documentation/content/xdocs/netui/tutorial_pageflow.xml?rev=279523&r1=279522&r2=279523&view=diff
==============================================================================
--- beehive/trunk/docs/forrest/release/src/documentation/content/xdocs/netui/tutorial_pageflow.xml (original)
+++ beehive/trunk/docs/forrest/release/src/documentation/content/xdocs/netui/tutorial_pageflow.xml Wed Sep 7 23:52:16 2005
@@ -726,7 +726,7 @@
</netui:html></source>
<p>Save <code>page2.jsp</code>.</p>
</section>
- <section id="validation_update_formbean">
+ <section id="nested_update_formbean">
<title>Update the Form Bean</title>
<p>In this task you will update the Java class that represents the submission form with the
additional data field created in the previous task. When the nested page flow returns,
@@ -751,7 +751,7 @@
</source>
<p>Save and close <code>ProfileForm.java</code>.</p>
</section>
- <section id="validation_update_controller">
+ <section id="nested_update_controller">
<title>To Launch and Return from the Nested Page Flow</title>
<p>In this task you will add Action methods: one to handle forwarding to the nested page flow and another to
implement the return Action when the nested page flow completes.</p>
@@ -850,7 +850,7 @@
</source>
<p>Save <code>Controller.java</code>.</p>
</section>
- <section id="validation_create_nested">
+ <section id="nested_create_nested">
<title>Create a Nested Page Flow</title>
<p>In this task you will create a nested page flow with actions to select and confirm
the data to return to the main ("nesting") page flow. The new nested controller class
@@ -933,7 +933,7 @@
</source>
<p>Save and close <code>SportsController.java</code>.</p>
</section>
- <section id="validation_collect_data">
+ <section id="nested_collect_data">
<title>To Present and Collect Data using a Form</title>
<p>This task illustrates the use of custom tags to render a radio button group in an HTML form and
link it to the nested page flow <code>selectSport</code> Action method.</p>
@@ -971,7 +971,7 @@
</source>
<p>Save <code>index.jsp</code>.</p>
</section>
- <section id="validation_confirm_data">
+ <section id="nested_confirm_data">
<title>Confirm the Selected Data</title>
<p>In the directory <code>pageflow_tutorial/sports</code>, create
a file named <code>confirm.jsp</code>.</p>
@@ -1000,11 +1000,42 @@
]]></source>
<p>Save <code>confirm.jsp</code>.</p>
</section>
- <section id="validation_build_deploy_again">
+ <section id="nested_display_data">
+ <title>Update the JSP to Display Submitted Data</title>
+ <p>In this step you will update the JSP to present the results from processing the data submission.</p>
+ <p>In the directory <code>pageflow_tutorial</code> update the file named
+ <strong><code>displayData.jsp</code></strong> and add code to display the additional data.
+ The code to add appears in bold type.</p>
+ <p>Edit <code>displayData.jsp</code> so it appears as follows.</p>
+
+ <p><strong><code>displayData.jsp</code></strong></p>
+ <source><%@ page language="java" contentType="text/html;charset=UTF-8"%>
+<%@ taglib uri="http://beehive.apache.org/netui/tags-html-1.0" prefix="netui"%>
+<netui:html>
+ <head>
+ <title>displayData.jsp</title>
+ <netui:base/>
+ </head>
+ <netui:body>
+ <p>
+ You submitted the following information:
+ </p>
+ <p>
+ Name: <netui:content value="${requestScope.data.name}"/>
+ <br/>
+ Age: <netui:content value="${requestScope.data.age}"/>
+ <strong><br/>
+ Sport: <netui:content value="${requestScope.data.sport}"/></strong>
+ </p>
+ </netui:body>
+</netui:html></source>
+ <p>Save and close <code>displayData.jsp</code>.</p>
+ </section>
+ <section id="nested_build_deploy_again">
<title>Recompile and Redeploy the Web Application</title>
<p>Compile and (re)deploy the web application using the same steps as described <a href="#create_build_deploy">here</a>.</p>
</section>
- <section id="validation_run_again">
+ <section id="nested_run_again">
<title>To Test the NetUI Web Application</title>
<p>Visit the following link:</p>
<p><a class="fork" href="http://localhost:8080/pageflow_tutorial/Controller.jpf">http://localhost:8080/pageflow_tutorial/Controller.jpf</a></p>
Modified: beehive/trunk/netui/src/scoping/org/apache/beehive/netui/pageflow/scoping/ScopedServletUtils.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/scoping/org/apache/beehive/netui/pageflow/scoping/ScopedServletUtils.java?rev=279523&r1=279522&r2=279523&view=diff
==============================================================================
--- beehive/trunk/netui/src/scoping/org/apache/beehive/netui/pageflow/scoping/ScopedServletUtils.java (original)
+++ beehive/trunk/netui/src/scoping/org/apache/beehive/netui/pageflow/scoping/ScopedServletUtils.java Wed Sep 7 23:52:16 2005
@@ -56,8 +56,7 @@
* @deprecated Use {@link #getScopedRequest(HttpServletRequest, String, ServletContext, Object, boolean)}.
*
* @param realRequest the "real" (outer) HttpServletRequest, which will be wrapped.
- * @param overrideURI the request-URI for the wrapped object. This is a <i>webapp-relative</i> URI,
- * i.e., it does not include the context path.
+ * @param overrideURI the request-URI for the wrapped object. This URI must begin with the context path.
* @param servletContext the current ServletContext.
* @param scopeKey the scope-key associated with the new (or looked-up) scoped request.
* @return the cached (or newly-created) ScopedRequest.
@@ -72,8 +71,7 @@
* Get the cached ScopedRequest wrapper. If none exists, creates one and caches it.
*
* @param realRequest the "real" (outer) HttpServletRequest, which will be wrapped.
- * @param overrideURI the request-URI for the wrapped object. This is a <i>webapp-relative</i> URI,
- * i.e., it does not include the context path.
+ * @param overrideURI the request-URI for the wrapped object. This URI must begin with the context path.
* @param servletContext the current ServletContext.
* @param scopeKey the scope-key associated with the new (or looked-up) scoped request.
* @param seeOuterRequestAttributes if <code>true</code>, a request attribute will be "seen" in the outer request,