Author: sabrashevich
Date: 2007-11-16 03:19:06 -0500 (Fri, 16 Nov 2007)
New Revision: 4931
Modified:
trunk/documentation/guides/userguide/Legacy-jsf-struts/en/modules/struts_application.xml
Log:
http://jira.jboss.com/jira/browse/RHDS-305 corrected programlisting
Modified:
trunk/documentation/guides/userguide/Legacy-jsf-struts/en/modules/struts_application.xml
===================================================================
---
trunk/documentation/guides/userguide/Legacy-jsf-struts/en/modules/struts_application.xml 2007-11-16
07:27:17 UTC (rev 4930)
+++
trunk/documentation/guides/userguide/Legacy-jsf-struts/en/modules/struts_application.xml 2007-11-16
08:19:06 UTC (rev 4931)
@@ -313,17 +313,18 @@
<title>GreetingAction.java</title>
<itemizedlist continuation="continues">
<listitem><para>Open GreetingAction.java for
editing</para></listitem>
-<listitem><para>Inside the execute method, delete the TO DO and throw lines
and add the following:</para></listitem>
+<listitem><para>Inside the execute method, delete the TO DO lines and add the
following:</para></listitem>
</itemizedlist>
<programlisting role="JAVA"><![CDATA[String name =
((GetNameForm)form).getName();
String greeting = "Hello, "+name+"!";
((GetNameForm)form).setName(greeting);
return mapping.findForward(FORWARD_sayHello);
+]]></programlisting>
-The final version of GreetingAction.java should look like this:
-package sample;
+<para>The final version of GreetingAction.java should look like this:</para>
+<programlisting role="JAVA"><![CDATA[package sample;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionForm;