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/12 22:25:54 UTC
svn commit: r169879 - in
/incubator/beehive/trunk/docs/forrest/src/documentation/content/xdocs:
controls/tutorial_controls.xml pageflow/pageflow_jsp.xml
Author: ekoneil
Date: Thu May 12 13:25:53 2005
New Revision: 169879
URL: http://svn.apache.org/viewcvs?rev=169879&view=rev
Log:
Contribution from Chad Schoettger. Tutorial / doc cleanup.
BB: self
DRT: none
Modified:
incubator/beehive/trunk/docs/forrest/src/documentation/content/xdocs/controls/tutorial_controls.xml
incubator/beehive/trunk/docs/forrest/src/documentation/content/xdocs/pageflow/pageflow_jsp.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=169879&r1=169878&r2=169879&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 Thu May 12 13:25:53 2005
@@ -72,8 +72,7 @@
control_tutorial
resources
WEB-INF
- Controller.jpf
- error.jsp
+ Controller.java
index.jsp</source>
</section>
<section><title>Edit the <code>build.properties</code> File</title>
@@ -108,7 +107,7 @@
src
pkg
Hello.java
- HelloImpl.jcs</source>
+ HelloImpl.java</source>
</section>
<section id="start_tomcat">
<title>To Start the Tomcat Server</title>
@@ -120,14 +119,13 @@
<title>Step 2: Compile the Control Implementation and Interface Files</title>
<section id="intro_2">
<title>Introduction</title>
- <p>A Beehive Control consists of two files: an interface file (with the JAVA file extension)
- and an implementation file (with the JCS file extension). The interface file is the
+ <p>A Beehive Control consists of two files: an interface file and an implementation file. The interface file is the
public face of your control. It lists all of the methods which can be invoked by
users. The implementation file contains the implementation code for the methods
listed in the interface file.</p>
</section>
<section id="examine"><title>To Examine the Control Files</title>
- <p>Open the file <code>C:/beehive_projects/control_tutorial/WEB-INF/src/pkg/HelloImpl.jcs</code>.</p>
+ <p>Open the file <code>C:/beehive_projects/control_tutorial/WEB-INF/src/pkg/HelloImpl.java</code>.</p>
<p>The implementation file appears as follows. (There is no need to edit the file at
this point in the tutorial.)</p>
<source>package pkg;
@@ -155,16 +153,16 @@
String hello();
}</source>
</section>
- <section id="edit_controller.jpf">
- <title>Edit the Controller.jpf File</title>
+ <section id="edit_controller.java">
+ <title>Edit the Controller.java File</title>
<p>To test the Hello control, you need to call the control from some other
resource, such as a JAVA application, JSP page, a web application, etc.
In the following two steps you will call the
control from the Contoller class in a web application and display the results
on a JSP page.
</p>
- <p>Open the file <code>C:/beehive_projects/control_tutorial/Controller.jpf</code> in a text editor.</p>
- <p>Edit <code>Controller.jpf</code> so it appears as follows:</p>
+ <p>Open the file <code>C:/beehive_projects/control_tutorial/Controller.java</code> in a text editor.</p>
+ <p>Edit <code>Controller.java</code> so it appears as follows:</p>
<source>import javax.servlet.http.HttpSession;
import org.apache.beehive.netui.pageflow.Forward;
@@ -281,13 +279,13 @@
<title>Step 3: Add a Parameterized Method to the Control</title>
<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>
+ <p>Edit <code>C:/beehive_projects/control_tutorial/WEB-INF/src/pkg/HelloImpl.java</code>
so it appears as follows. Code to add appears in bold.</p>
<source>package pkg;
import org.apache.beehive.controls.api.bean.*;
-@ControlImplementation
+@ControlImplementation(isTransient=true)
public class HelloImpl implements Hello
{
public String hello()
@@ -313,9 +311,9 @@
<strong>String helloParam( String name );</strong>
}</source>
</section>
-<section id="edit_jpf_3"><title>Edit the Controller.jpf File</title>
+<section id="edit_jpf_3"><title>Edit the Controller.java File</title>
<p>Edit the <code>begin()</code> method in
- <code>Controller.jpf</code> so it appears as follows. Code to add appears in bold.</p>
+ <code>Controller.java</code> so it appears as follows. Code to add appears in bold.</p>
<source>...
public class Controller
Modified: incubator/beehive/trunk/docs/forrest/src/documentation/content/xdocs/pageflow/pageflow_jsp.xml
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/docs/forrest/src/documentation/content/xdocs/pageflow/pageflow_jsp.xml?rev=169879&r1=169878&r2=169879&view=diff
==============================================================================
--- incubator/beehive/trunk/docs/forrest/src/documentation/content/xdocs/pageflow/pageflow_jsp.xml (original)
+++ incubator/beehive/trunk/docs/forrest/src/documentation/content/xdocs/pageflow/pageflow_jsp.xml Thu May 12 13:25:53 2005
@@ -244,7 +244,7 @@
<strong><netui:form action="processLogin" method="POST">
<netui:textBox dataSource="actionForm.username" size="20"/>
<netui:textBox dataSource="actionForm.password" size="20" password="true"/>
- <netui:button type="submit" value="Login"/>
+ <netui:button dataSource="actionForm.submit" value="Login"/>
</netui:form></strong>
</source>