Author: afedosik
Date: 2007-05-14 09:16:25 -0400 (Mon, 14 May 2007)
New Revision: 2029
Modified:
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/GettingStartedGuideforCreatingaStrutsApplication.xml
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/GettingStartedStrutsValidationExamples.xml
Log:
Modified:
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/GettingStartedGuideforCreatingaStrutsApplication.xml
===================================================================
---
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/GettingStartedGuideforCreatingaStrutsApplication.xml 2007-05-11
17:16:36 UTC (rev 2028)
+++
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/GettingStartedGuideforCreatingaStrutsApplication.xml 2007-05-14
13:16:25 UTC (rev 2029)
@@ -41,7 +41,7 @@
first. (We dont have to complete all of the details inside the components until
afterwards.)</para>
<section id="CreatingJSPPagePlaceholders">
<title>Creating JSP Page Placeholders</title>
-<para>Next, lets create and place two JSP pages. We will not write any code for the
files, but only
+ <para>Next, let's create and place two JSP pages. We will not
write any code for the files, but only
create them as placeholders so that we can create links to them in the diagram. We will
write
the code a little bit later.</para>
<section id="CreatingthePagePlaceholders">
@@ -81,10 +81,11 @@
</orderedlist>
<table>
<tgroup cols="2">
+ <tbody>
<row>
- <entry>path</entry>
- <entry>/greeting</entry>
- </row>
+ <entry>path</entry>
+ <entry>/greeting</entry>
+ </row>
<row>
<entry>name</entry>
<entry>GetNameForm</entry>
@@ -101,6 +102,7 @@
<entry>validate</entry>
<entry><leave blank></entry>
</row>
+ </tbody>
</tgroup>
</table>
<para>(GetNameForm is the name for a form bean that we will create
later.)</para>
@@ -113,9 +115,19 @@
</section>
<section id="CreatingaLink">
<title>Creating a Link</title>
-<para>Lets now create a link from the inputname.jsp page to the
action.</para>
+<para>Let's now create a link from the inputname.jsp page to the
action.</para>
<orderedlist continuation="continues">
<listitem><para>On the left-hand side of the diagram in the column of icons,
click on this icon:</para></listitem>
+ </orderedlist>
+ <figure>
+ <title>Create New Connection Icon</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/arrow.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <orderedlist continuation="continues">
<listitem><para>In the connect-the-components mode you are in
now, click on the /pages/inputname.jsp icon in the diagram and then click on the /greeting
action.</para></listitem>
</orderedlist>
<para>A link will be created from the page to the action.</para>
@@ -125,6 +137,16 @@
<para>Next, we are going to create a forward for the action.</para>
<orderedlist continuation="continues">
<listitem><para>On the left-hand side of the diagram in the column of icons,
click on this icon, again:</para></listitem>
+ </orderedlist>
+ <figure>
+ <title>Create New Connection Icon</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/arrow.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <orderedlist continuation="continues">>
<listitem><para>Click on the /greeting action icon in the diagram and then
click on the /pages/greeting.jsp icon.</para></listitem>
<listitem><para>Thats it. A link will be drawn from the actions new greeting
forward to the greeting.jsp JSP page. Note that the forwards name will be set based on the
name of the target JSP file
@@ -151,7 +173,15 @@
<para>A forward object now appears on the diagram and also in the global-forwards
folder in the Outline view.</para>
<orderedlist continuation="continues">
<listitem><para>Tidy up the diagram, by clicking and dragging
around each icon, so that the diagram looks something like
this:</para></listitem>
- </orderedlist>
+ </orderedlist>
+ <figure>
+ <title>Diagram View</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/Diagram.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
</section>
<section id="CreatingaFormBean">
<title>Creating a Form Bean</title>
@@ -334,12 +364,30 @@
<listitem><para>Select the Visual pane of the
editor.</para></listitem>
<listitem><para>Then, in the Red Hat Palette, expand the Struts Form library,
select text, and drag it onto the box.</para></listitem>
-<listitem><para>In the Insert Tag dialog box, type in name for property and
select Finish.</para></listitem>
+ </orderedlist>
+ <figure>
+ <title>Red Hat Palette</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/RH_Palette.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <orderedlist continuation="continues">
+ <listitem><para>In the Insert Tag dialog box, type in name for property and
select Finish.</para></listitem>
<listitem><para>In the Struts Form library in the Red Hat Palette, select
submit, and drag it to right after the the text box in the Visual pane of the
editor.</para></listitem>
<listitem><para>Right-click the submit button and select
<html:submit> Attributes from the context
menu.</para></listitem>
<listitem><para>In the Attributes dialog box, select the value field and type
in Say Hello! for its value.</para></listitem>
</orderedlist>
<para>After tidying the page source, the Editor window for the file should look
something like this:</para>
+ <figure>
+ <title>Editor window</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
fileref="images/strinputname.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
</section>
<section id="greeting.jsp">
<title>greeting.jsp</title>
@@ -376,6 +424,14 @@
<listitem><para>Type in GetNameForm for the name attribute and add a property
attribute with greetName as its value.</para></listitem>
</orderedlist>
<para>The editor should should now look like this:</para>
+ <figure>
+ <title>Editor window</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
fileref="images/strgreeting.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
</section>
<section id="index.jsp">
<title>index.jsp</title>
@@ -415,6 +471,14 @@
<para>Everything is now ready for running our applicationwithout having to leave
Red Hat Developer Studio
by using the JBoss Application Server engine that comes with the Red Hat Developer
Studio plug-in. For controlling
JBoss AS within Red Hat Developer Studio, the toolbar contains a
panel.</para>
+ <figure>
+ <title>JBoss Server Panel</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/running.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
<orderedlist continuation="continues">
<listitem>Start up JBoss AS by clicking on the first icon from left in this panel.
(If JBoss AS is
already running, stop it by clicking on the third icon from the left and then start
it
Modified:
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/GettingStartedStrutsValidationExamples.xml
===================================================================
---
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/GettingStartedStrutsValidationExamples.xml 2007-05-11
17:16:36 UTC (rev 2028)
+++
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/GettingStartedStrutsValidationExamples.xml 2007-05-14
13:16:25 UTC (rev 2029)
@@ -49,7 +49,7 @@
<listitem><para>Drag up the sample.applResources icon until you can drop it
on the resources folder under struts-config.xml.</para></listitem>
<listitem><para>Select File/Save All from the menu
bar.</para></listitem>
-<listitem><para>Select validation.xml under the StrutsHello/Validation node
and double-click it to open it with the Exadel Studio Validation
Editor.</para></listitem>
+<listitem><para>Select validation.xml under the StrutsHello/Validation node
and double-click it to open it with the Red Hat Studio Validation
Editor.</para></listitem>
<listitem><para>Expand the form-beans node under the
StrutsHello/Configuration/default/ struts-config.xml node. Then, drag the form bean
GetNameForm and drop it onto formset (default) in the Validation
Editor.</para></listitem>
<listitem><para>In the Validation Editor, expand the formset node,
right-click GetNameForm, and select Add Field... from the context
menu.</para></listitem>
<listitem><para>Enter name for Property in the dialog
box.</para></listitem>
@@ -110,14 +110,14 @@
]]></programlisting>
<orderedlist continuation="continues">
<listitem><para>Select File/Save from the menu
bar.</para></listitem>
-<listitem><para>28. Start Tomcat by clicking on its icon (a right-pointing
arrow) in the toolbar.</para></listitem>
-<listitem><para>29. Click on the Run icon in the
toolbar.</para></listitem>
+<listitem><para>Start Tomcat by clicking on its icon (a right-pointing arrow)
in the toolbar.</para></listitem>
+<listitem><para>Click on the Run icon in the
toolbar.</para></listitem>
</orderedlist>
<figure>
<title></title>
<mediaobject>
<imageobject>
- <imagedata fileref="img/"/>
+ <imagedata fileref="images/run.png"/>
</imageobject>
</mediaobject>
</figure>