Author: chukhutsina
Date: 2009-05-08 12:29:51 -0400 (Fri, 08 May 2009)
New Revision: 15141
Modified:
trunk/struts/docs/struts_tools_tutorial/en/modules/coding_files.xml
trunk/struts/docs/struts_tools_tutorial/en/modules/struts_validation.xml
Log:
<html><head><meta name="qrichtext" content="1"
/></head><body style="font-size:9pt;font-family:Sans Serif">
<
p>https://jira.jboss.org/jira/browse/JBDS-652 - Code patterns in text .All the code
patterns were marked with the tag.The incorrect listings were modified. </p>
</body></html>
Modified: trunk/struts/docs/struts_tools_tutorial/en/modules/coding_files.xml
===================================================================
--- trunk/struts/docs/struts_tools_tutorial/en/modules/coding_files.xml 2009-05-08
16:09:37 UTC (rev 15140)
+++ trunk/struts/docs/struts_tools_tutorial/en/modules/coding_files.xml 2009-05-08
16:29:51 UTC (rev 15141)
@@ -209,9 +209,9 @@
<listitem>
<para>Drag it and drop it between the quotes for the
<emphasis role="italic">
<property>"action"</property>
- </emphasis> attribute to the <emphasis
role="bold">
-
<property><html:form></property>
- </emphasis> element in the Source pane of the
editor</para>
+ </emphasis> attribute to the
+ <code><html:form></code>
+ element in the Source pane of the editor</para>
</listitem>
<listitem>
<para>Then type this text on a new line just below this
line:</para>
@@ -265,9 +265,9 @@
<listitem>
<para>Right-click the <emphasis>
<property>submit</property>
- </emphasis> button and select <emphasis
role="bold">
-
<property><html:submit></property>
- </emphasis> Attributes from the context
menu</para>
+ </emphasis> button and select
+ <code><html:submit></code>
+ Attributes from the context menu</para>
</listitem>
<listitem>
<para>In the Attributes dialog box, select the
<emphasis>
@@ -340,9 +340,9 @@
</emphasis> folder in the <property>JBoss Tools
Palette</property> to open it</para>
</listitem>
<listitem>
- <para>Position the cursor inside the <emphasis
role="bold">
- <property><p></property>
- </emphasis> element</para>
+ <para>Position the cursor inside the
+ <code><p></code>
+ element</para>
</listitem>
<listitem>
<para>Click on <emphasis>
Modified: trunk/struts/docs/struts_tools_tutorial/en/modules/struts_validation.xml
===================================================================
--- trunk/struts/docs/struts_tools_tutorial/en/modules/struts_validation.xml 2009-05-08
16:09:37 UTC (rev 15140)
+++ trunk/struts/docs/struts_tools_tutorial/en/modules/struts_validation.xml 2009-05-08
16:29:51 UTC (rev 15141)
@@ -92,35 +92,25 @@
<listitem><para>In the JBoss Tools Palette view to the right, open the
Struts HTML folder and click on the javascript tag</para></listitem>
<listitem><para>Back in the editor, just in front of the closing slash for
this inserted tag, hit Ctrl+Space and select "formName" from the
prompting menu</para></listitem>
<listitem><para>Over in the Web Projects view, select GetNameForm under the
<emphasis><property>StrutsHello > Configuration > default
> struts-config.xml > form-beans</property></emphasis> node,
drag it, and drop it between the quotes in the editor</para></listitem>
-<listitem><para>Modify the <emphasis
role="bold"><property><html:form></property></emphasis>
tag by inserting this attribute:</para></listitem>
+<listitem><para>Modify the <code><html:form></code>
tag by inserting this attribute:</para></listitem>
</itemizedlist>
<programlisting role="XML"><![CDATA[onsubmit="return
validateGetNameForm(this)"
]]></programlisting>
<para></para>
<para>The file should now look like this:</para>
<programlisting role="XML"><![CDATA[
-<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
-<html:html>
-<head>
- <title>Input name</title>
- <html:javascript formName="GetNameForm"/>
-</head>
-<body>
- <html:form action="/greeting.do" onsubmit="return
- <para>validateGetNameForm(this)"></para>
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td><b>Input name:</b></td>
- </tr>
- <tr>
- <td>
- <html:text property="name" />
- <html:submit value=" Say Hello! " />
- </td>
- </tr>
- </table>
- </html:form>
-</body>
+<%@ taglib uri="/WEB-INF/struts-html" prefix="html" %>
+
+<html:html >
+ <head>
+ <html:javascript formName="GetNameForm"/>
+ <title></title>
+ </head>
+ <body>
+ <html:form action="/greeting.do" onsubmit="return
validateGetNameForm(this)">
+ Input name:<html:text property="name"/><html:submit
value="Say Hello!"/>
+ </html:form>
+ </body>
</html:html>
]]></programlisting>
<itemizedlist>
@@ -150,34 +140,26 @@
<title>Editing the JSP File</title>
<itemizedlist>
<listitem><para>Reopen inputname.jsp for
editing</para></listitem>
-<listitem><para>Delete the <emphasis
role="italic"><property>"onsubmit"</property></emphasis>
attribute in the <emphasis
role="bold"><property><html:form></property></emphasis>
element that you put in for client-side validation</para></listitem>
+<listitem><para>Delete the <emphasis
role="italic"><property>"onsubmit"</property></emphasis>
attribute in the <code><html:form></code> element that you put
in for client-side validation</para></listitem>
-<listitem><para>Add an <emphasis
role="bold"><property><html:errors></property></emphasis>
tag after the <emphasis
role="bold"><property><html:form></property></emphasis>
tag</para></listitem>
+<listitem><para>Add an <code><html:errors/></code>
tag after the
+ <code><html:form></code>
+ tag</para></listitem>
</itemizedlist>
<para>The JSP file should now look like this:</para>
-<programlisting role="XML"><![CDATA[<%@ taglib
uri="/WEB-INF/struts-html.tld" prefix="html" %>
-<html:html>
+ <programlisting role="XML"><![CDATA[<%@ taglib
uri="/WEB-INF/struts-html" prefix="html" %>
+<html:html >
<head>
- <title>Input name</title>
- <html:javascript formName="GetNameForm"/>
-</head>
-<body>
- <html:form action="/greeting.do">
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td><b>Input name:</b></td>
- </tr>
- <tr>
- <td>
- <html:text property="name" />
- <html:submit value=" Say Hello! " />
- </td>
- </tr>
- </table>
- </html:form>
- <html:errors />
-</body>
+ <html:javascript formName="GetNameForm"/>
+ <title></title>
+ </head>
+ <body>
+ <html:form action="/greeting.do" >Input name:<html:text
property="name"/>
+ <html:submit value="Say Hello!"/>
+ </html:form>
+ <html:errors/>
+ </body>
</html:html>
]]></programlisting>
@@ -242,11 +224,11 @@
}
// public ActionErrors validate(ActionMapping actionMapping,
- HttpServletRequest request)
- {
- // ActionErrors errors = new ActionErrors();
- // return errors;
- // }
+ // HttpServletRequest request)
+ //{
+ // ActionErrors errors = new ActionErrors();
+ // return errors;
+ // }
}
]]></programlisting>