You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beehive.apache.org by ek...@apache.org on 2005/05/09 19:54:01 UTC

svn commit: r169341 - in /incubator/beehive/trunk/docs/forrest/src/documentation/content/xdocs: controls/tutorial_controls.xml pageflow/tutorial_pageflow.xml

Author: ekoneil
Date: Mon May  9 10:54:01 2005
New Revision: 169341

URL: http://svn.apache.org/viewcvs?rev=169341&view=rev
Log:
Few tweaks to the controls and JPF tutorials.

- fixup the build steps to cd into <context-root>/WEB-INF/src/ and run "ant clean build war" instead of passing the build file via -f
- fix Tomcat port number from 7001 to 8080

BB: self
DRT: none
Test: build.dist successful


Modified:
    incubator/beehive/trunk/docs/forrest/src/documentation/content/xdocs/controls/tutorial_controls.xml
    incubator/beehive/trunk/docs/forrest/src/documentation/content/xdocs/pageflow/tutorial_pageflow.xml

Modified: incubator/beehive/trunk/docs/forrest/src/documentation/content/xdocs/controls/tutorial_controls.xml
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/docs/forrest/src/documentation/content/xdocs/controls/tutorial_controls.xml?rev=169341&r1=169340&r2=169341&view=diff
==============================================================================
--- incubator/beehive/trunk/docs/forrest/src/documentation/content/xdocs/controls/tutorial_controls.xml (original)
+++ incubator/beehive/trunk/docs/forrest/src/documentation/content/xdocs/controls/tutorial_controls.xml Mon May  9 10:54:01 2005
@@ -252,26 +252,24 @@
             </section>
             <section id="compile_2">
                 <title>To Compile and Deploy the Control</title>
-                <p>You are now ready to compile the test web application
-					and the imbedded the control.</p>
-                <p>At the command prompt, enter the following Ant command.</p>
-                <p>At the command prompt, enter:</p>
+                <p>You are now ready to compile the test web application and the embedded the control.</p>
+                <p>At the command prompt, change to the directory c:\beehive_projects\control_tutorial\WEB-INF\src.</p>
+                <p>To build the web application, enter:</p>
 <source>ant 
-  -f C:\beehive_projects\control_tutorial\WEB-INF\src\build.xml
   clean
   build
   war
 
 <strong>Copy and Paste version:</strong>
-
-ant -f C:\beehive_projects\control_tutorial\WEB-INF\src\build.xml clean build war</source>
-<p>To deploy the web application, copy the WAR file into Tomcat's <code>webapps</code> directory.</p>
+ant clean build war
+</source>
+<p>To deploy the web application to Tomcat, copy the WAR file into Tomcat's <code>webapps/</code> directory.</p>
 <source>copy C:\beehive_projects\control_tutorial.war %CATALINA_HOME%\webapps /Y</source>
             </section>
             <section id="test_2">
                 <title>To Test the Control</title>
                 <p>Open a web browser and enter the following in the address bar:</p>
-				<p class="quote"><a class="fork" href="http://localhost:8080/control_tutorial/Controller.jpf">http://localhost:8080/control_tutorial/Controller.jpf</a></p>
+                <p class="quote"><a class="fork" href="http://localhost:8080/control_tutorial/Controller.jpf">http://localhost:8080/control_tutorial/Controller.jpf</a></p>
                 <p>You will be directed to the index.jsp page.</p>
                 <p>Note the message on the page: "hello!"</p>
                 <p>This message is provided by the Hello control.</p>
@@ -282,8 +280,7 @@
                 <section id="edit_3">
                     <title>To edit the Interface and Implementation Files</title>
                     <p>Edit <code>C:/beehive_projects/control_tutorial/WEB-INF/src/pkg/HelloImpl.jcs</code> 
-						so it appears as follows.  Code to add appears in 
-						bold.</p>
+so it appears as follows.  Code to add appears in bold.</p>
 <source>package pkg;
 
 import org.apache.beehive.controls.api.bean.*;
@@ -376,7 +373,7 @@
             <section id="test_3">
                 <title>To Test the Control</title>
                 <p>Open a web browser and enter the following in the address bar:</p>
-				<p class="quote"><a class="fork" href="http://localhost:8080/control_tutorial/Controller.jpf">http://localhost:8080/control_tutorial/Controller.jpf</a></p>
+		<p class="quote"><a class="fork" href="http://localhost:8080/control_tutorial/Controller.jpf">http://localhost:8080/control_tutorial/Controller.jpf</a></p>
                 <p>You will be directed to the index.jsp page.</p>
                 <p>Note the messages on the page: "hello!" and "Hello, World!"</p>
                 <p>These messages are provided by the Hello control.</p>
@@ -385,7 +382,7 @@
        </body>
     <footer>
         <legal>Java, J2EE, and JCP are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries.<br/>
-	&copy; 2004, Apache Software Foundation
+	&copy; 2005, Apache Software Foundation
 	</legal>
     </footer>
 </document>

Modified: incubator/beehive/trunk/docs/forrest/src/documentation/content/xdocs/pageflow/tutorial_pageflow.xml
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/docs/forrest/src/documentation/content/xdocs/pageflow/tutorial_pageflow.xml?rev=169341&r1=169340&r2=169341&view=diff
==============================================================================
--- incubator/beehive/trunk/docs/forrest/src/documentation/content/xdocs/pageflow/tutorial_pageflow.xml (original)
+++ incubator/beehive/trunk/docs/forrest/src/documentation/content/xdocs/pageflow/tutorial_pageflow.xml Mon May  9 10:54:01 2005
@@ -59,7 +59,7 @@
             </section>
 			
 			<section id="edit_properties_file"><title>Edit the <code>build.properties</code> File</title>
-				<p>In this section you will edit the <code>build.properties</code> file--the file
+				<p>In this section you will edit the <code>build.properties</code> file -- the file
 					that sets the build-related properties for your web application.</p>
 				<p>Open the file <code>C:/beehive_projects/pageflow_tutorial/WEB-INF/src/build.properties</code>
 					in a text editor.</p>
@@ -69,14 +69,13 @@
 				<note>The <code>context.path</code> property determines both (1) the name of the application 
 					WAR file and (2) the application URL.  
 					<br/><br/>
-					If <code>context.path=myWebApp</code>, then the following
-					WAR file will be produced:
+					If <code>context.path=myWebApp</code>, then the following WAR file will be produced:
 					<br/><br/>
 					&nbsp;&nbsp;&nbsp;&nbsp;<strong><code>myWebApp</code></strong><code>.war</code>
 					<br/><br/>
-					and the following URL will invoke the web application
+					and the following URL will invoke the web application:
 					<br/><br/>
-					&nbsp;&nbsp;&nbsp;&nbsp;<code>http://somedomain/</code><strong><code>myWebApp</code></strong>
+					&nbsp;&nbsp;&nbsp;&nbsp;<code>http://someserver/</code><strong><code>myWebApp</code></strong>
 					</note>
 				<p>For example, if your beehive installation
 					resides at <code>C:/apache/apache-beehive-1.0</code>, then your <code>build.properties</code> file
@@ -139,7 +138,7 @@
 					instantiated.  The <code>onDestroy()</code> method is executed when the Controller 
 					class is destroyed.</p>
 				<p>The Controller class is instantiated when a user calls it via the URL:</p>
-				<source>http://localhost:7001/tutorial_pageflow/Controller.jpf</source>
+				<source>http://localhost:8080/tutorial_pageflow/Controller.jpf</source>
 			    <p>When a Controller class is instantiated, first the <code>onCreate()</code> method is run,
 					and then the action <code>begin</code> is run.  In this case, the <code>begin</code>
 					action forwards the user to the <code>index.jsp</code> page.</p>
@@ -203,16 +202,17 @@
             <section id="compile_2">
                 <title>To Compile and Deploy the Page Flow</title>
                 <p>You are now ready to compile the Page Flow and deploy it to Tomcat.</p>
-                <p>At the command prompt, enter:</p>
+                <p>At the command prompt, change to the directory c:\beehive_projects\pageflow_tutorial\WEB-INF\src.</p>
+                <p>To build the web application, enter:</p>
 <source>ant 
-  -f C:\beehive_projects\pageflow_tutorial\WEB-INF\src\build.xml
   clean
   build
   war
 
 <strong>Copy and Paste version:</strong>
-ant -f C:\beehive_projects\pageflow_tutorial\WEB-INF\src\build.xml clean build war</source>
-<p>To deploy the application, copy the WAR file into Tomcat's <code>webapps</code> directory.</p>
+ant clean build war
+</source>
+<p>To deploy the application to Tomcat, copy the WAR file into Tomcat's <code>webapps</code> directory.</p>
 <source>copy C:\beehive_projects\pageflow_tutorial.war %CATALINA_HOME%\webapps</source>
 			</section>
             <section id="test_2">
@@ -538,7 +538,7 @@
     </body>
     <footer>
         <legal>Java, J2EE, and JCP are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries.<br/>
-	&copy; 2004, Apache Software Foundation
+	&copy; 2005, Apache Software Foundation
 	</legal>
     </footer>
 </document>