Author: mcaspers
Date: 2011-01-04 23:20:50 -0500 (Tue, 04 Jan 2011)
New Revision: 27895
Modified:
trunk/struts/docs/struts_tools_tutorial/en-US/master_output.xml
trunk/struts/docs/struts_tools_tutorial/en-US/struts_application.xml
Log:
Fixed issue TOOLSDOC-133 (
https://issues.jboss.org/browse/TOOLSDOC-133)
Modified: trunk/struts/docs/struts_tools_tutorial/en-US/master_output.xml
===================================================================
--- trunk/struts/docs/struts_tools_tutorial/en-US/master_output.xml 2011-01-05 03:08:04
UTC (rev 27894)
+++ trunk/struts/docs/struts_tools_tutorial/en-US/master_output.xml 2011-01-05 04:20:50
UTC (rev 27895)
@@ -260,11 +260,11 @@
<para>Now, we will design the application by creating the individual
components as
placeholders first. (We don't have to complete all of the details inside
the components
until afterwards.)</para>
- <section id="CreatingJSPPagePlaceholders">
+ <section id="CreatingJSPPagePlaceholders">
<title>Creating JSP Page Placeholders</title>
- <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>
+ <para>Next, let's create and place two JSP pages. We will not write
anything more than basic template code
+ for the files; they will serve only as placeholders so that we can create
links to
+ them in the diagram. We will write some custom code a little bit
later.</para>
<section id="CreatingthePagePlaceholders">
<title>Creating the Page Placeholders</title>
<itemizedlist>
@@ -303,13 +303,16 @@
<listitem>
<para>For Name type in <emphasis>
<property
moreinfo="none">inputname</property>
- </emphasis> (the JSP extension will be automatically
added to the file),
- for Template select <emphasis>
- <property
moreinfo="none">StrutsForm</property>
- </emphasis> and then click on the <emphasis>
- <property
moreinfo="none">Finish</property>
+ </emphasis> (the JSP extension will be automatically
added to the file), and then click on the <emphasis>
+ <property
moreinfo="none">Next</property>
</emphasis> button</para>
</listitem>
+ <listitem>
+ <para>
+ Untick the <emphasis><property moreinfo="none">use JSP
Template</property></emphasis> checkbox, and then click on the
+ <emphasis><property
moreinfo="none">Finish</property></emphasis> button
+ </para>
+ </listitem>
<listitem>
<para>Right-click the <emphasis>
<property
moreinfo="none">pages</property></emphasis> folder again and
select <emphasis>
@@ -319,14 +322,38 @@
<listitem>
<para>For Name type in <emphasis>
<property
moreinfo="none">greeting</property>
- </emphasis>, for Template leave as <emphasis>
- <property
moreinfo="none">Blank</property>,</emphasis> and then click on
the <emphasis>
- <property
moreinfo="none">Finish</property>
+ </emphasis>, and then click on the <emphasis>
+ <property
moreinfo="none">Next</property>
</emphasis> button</para>
</listitem>
+ <listitem>
+ <para>
+ Untick the <emphasis><property moreinfo="none">use JSP
Template</property></emphasis> checkbox, and then click on the
+ <emphasis><property
moreinfo="none">Finish</property></emphasis> button
+ </para>
+ </listitem>
</itemizedlist>
- <para>Just leave these files as is for now.</para>
</section>
+
+ <section id="UpdatingInputnameJSP">
+ <title>Adding Template Code to the inputname.jsp File</title>
+ <para>
+ The inputname.jsp file needs to be populated with some template code. Click on
the <emphasis>
+ <property moreinfo="none">inputname.jsp</property>
+ </emphasis> page in the <property
moreinfo="none">Web Projects view</property>, and then modify the file
so it looks like this:
+ <programlisting><![CDATA[<%@ taglib
uri="/WEB-INF/struts-html" prefix="html" %>
+<html:html>
+<head>
+ <title></title>
+</head>
+<body>
+ <html:form action="">
+ </html:form>
+</body>
+</html:html>]]></programlisting>
+ </para>
+ </section>
+
<section id="PlacingthePagePlaceholders">
<title>Placing the Page Placeholders</title>
<para>Lets now place the two pages just created on the
diagram.</para>
Modified: trunk/struts/docs/struts_tools_tutorial/en-US/struts_application.xml
===================================================================
--- trunk/struts/docs/struts_tools_tutorial/en-US/struts_application.xml 2011-01-05
03:08:04 UTC (rev 27894)
+++ trunk/struts/docs/struts_tools_tutorial/en-US/struts_application.xml 2011-01-05
04:20:50 UTC (rev 27895)
@@ -94,32 +94,32 @@
<para>Now, we will design the application by creating the individual
components as
placeholders first. (We don't have to complete all of the details inside
the components
until afterwards.)</para>
- <section id="CreatingJSPPagePlaceholders">
+ <section id="CreatingJSPPagePlaceholders">
<title>Creating JSP Page Placeholders</title>
- <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>
+ <para>Next, let's create and place two JSP pages. We will not write
anything more than basic template code
+ for the files; they will serve only as placeholders so that we can create
links to
+ them in the diagram. We will write some custom code a little bit
later.</para>
<section id="CreatingthePagePlaceholders">
<title>Creating the Page Placeholders</title>
<itemizedlist>
<listitem>
- <para>Bring the <property>Web Projects
view</property> to the front of the <property>Package Explorer
view</property>
+ <para>Bring the <property
moreinfo="none">Web Projects view</property> to the front of the
<property moreinfo="none">Package Explorer view</property>
by selecting the <emphasis>
- <property>Web Projects</property>
+ <property moreinfo="none">Web
Projects</property>
</emphasis> tab next to that tab.</para>
</listitem>
<listitem>
<para>Right-click the <emphasis>
- <property>StrutsHello > WEB-ROOT
(WebContent)</property>
- </emphasis> folder in the <property>Web Projects
view</property> and select <emphasis>
- <property>New > Folder...</property>
+ <property moreinfo="none">StrutsHello
> WEB-ROOT (WebContent)</property>
+ </emphasis> folder in the <property
moreinfo="none">Web Projects view</property> and select
<emphasis>
+ <property moreinfo="none">New >
Folder...</property>
</emphasis></para>
</listitem>
<listitem>
<para>Enter <emphasis>
- <property>pages</property>
+ <property
moreinfo="none">pages</property>
</emphasis> for a folder name and click
<emphasis>
- <property>Finish</property>
+ <property
moreinfo="none">Finish</property>
</emphasis></para>
</listitem>
@@ -129,38 +129,64 @@
<listitem>
<para>Right-click the <emphasis>
- <property>pages</property></emphasis>
folder and select <emphasis>
- <property>New > File >
JSP...</property>
+ <property
moreinfo="none">pages</property></emphasis> folder and select
<emphasis>
+ <property moreinfo="none">New >
File > JSP...</property>
</emphasis>
</para>
</listitem>
<listitem>
<para>For Name type in <emphasis>
- <property>inputname</property>
- </emphasis> (the JSP extension will be automatically
added to the file),
- for Template select <emphasis>
- <property>StrutsForm</property>
- </emphasis> and then click on the <emphasis>
- <property>Finish</property>
+ <property
moreinfo="none">inputname</property>
+ </emphasis> (the JSP extension will be automatically
added to the file), and then click on the <emphasis>
+ <property
moreinfo="none">Next</property>
</emphasis> button</para>
</listitem>
+ <listitem>
+ <para>
+ Untick the <emphasis><property moreinfo="none">use JSP
Template</property></emphasis> checkbox, and then click on the
+ <emphasis><property
moreinfo="none">Finish</property></emphasis> button
+ </para>
+ </listitem>
<listitem>
<para>Right-click the <emphasis>
- <property>pages</property></emphasis>
folder again and select <emphasis>
- <property>New > File >
JSP...</property>
+ <property
moreinfo="none">pages</property></emphasis> folder again and
select <emphasis>
+ <property moreinfo="none">New >
File > JSP...</property>
</emphasis></para>
</listitem>
<listitem>
<para>For Name type in <emphasis>
- <property>greeting</property>
- </emphasis>, for Template leave as <emphasis>
- <property>Blank</property>,</emphasis> and
then click on the <emphasis>
- <property>Finish</property>
+ <property
moreinfo="none">greeting</property>
+ </emphasis>, and then click on the <emphasis>
+ <property
moreinfo="none">Next</property>
</emphasis> button</para>
</listitem>
+ <listitem>
+ <para>
+ Untick the <emphasis><property moreinfo="none">use JSP
Template</property></emphasis> checkbox, and then click on the
+ <emphasis><property
moreinfo="none">Finish</property></emphasis> button
+ </para>
+ </listitem>
</itemizedlist>
- <para>Just leave these files as is for now.</para>
</section>
+
+ <section id="UpdatingInputnameJSP">
+ <title>Adding Template Code to the inputname.jsp File</title>
+ <para>
+ The inputname.jsp file needs to be populated with some template code. Click on
the <emphasis>
+ <property moreinfo="none">inputname.jsp</property>
+ </emphasis> page in the <property
moreinfo="none">Web Projects view</property>, and then modify the file
so it looks like this:
+ <programlisting><![CDATA[<%@ taglib
uri="/WEB-INF/struts-html" prefix="html" %>
+<html:html>
+<head>
+ <title></title>
+</head>
+<body>
+ <html:form action="">
+ </html:form>
+</body>
+</html:html>]]></programlisting>
+ </para>
+ </section>
<section id="PlacingthePagePlaceholders">
<title>Placing the Page Placeholders</title>
<para>Lets now place the two pages just created on the
diagram.</para>
@@ -424,4 +450,4 @@
<property>struts-config.xml</property>.</emphasis></para>
</section>
</section>
-</chapter>
\ No newline at end of file
+</chapter>