From jbosstools-commits at lists.jboss.org Fri May 8 12:33:16 2009 Content-Type: multipart/mixed; boundary="===============6065078234966763502==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r15141 - trunk/struts/docs/struts_tools_tutorial/en/modules. Date: Fri, 08 May 2009 12:29:51 -0400 Message-ID: --===============6065078234966763502== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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:

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 mod= ified.

Modified: trunk/struts/docs/struts_tools_tutorial/en/modules/coding_files.x= ml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/struts/docs/struts_tools_tutorial/en/modules/coding_files.xml 200= 9-05-08 16:09:37 UTC (rev 15140) +++ trunk/struts/docs/struts_tools_tutorial/en/modules/coding_files.xml 200= 9-05-08 16:29:51 UTC (rev 15141) @@ -209,9 +209,9 @@ Drag it and drop it between the quotes for t= he "action" - attribute to the - <html:form> - element in the Source pane of the = editor + attribute to the = + <html:form> + element in the Source pane of the editor Then type this text on a new line just below= this line: @@ -265,9 +265,9 @@ Right-click the submit - button and select - <html:submit> - Attributes from the context menu + button and select = + <html:submit> + Attributes from the context menu In the Attributes dialog box, select the @@ -340,9 +340,9 @@ folder in the JBoss Tool= s Palette to open it - Position the cursor inside the - <p> - element + Position the cursor inside the = + <p> + element Click on Modified: trunk/struts/docs/struts_tools_tutorial/en/modules/struts_validat= ion.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/struts/docs/struts_tools_tutorial/en/modules/struts_validation.xm= l 2009-05-08 16:09:37 UTC (rev 15140) +++ trunk/struts/docs/struts_tools_tutorial/en/modules/struts_validation.xm= l 2009-05-08 16:29:51 UTC (rev 15141) @@ -92,35 +92,25 @@ In the JBoss Tools Palette view to the right, open the= Struts HTML folder and click on the javascript tag 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 Over in the Web Projects view, select GetNameForm under th= e StrutsHello > Configuration > default > stru= ts-config.xml > form-beans node, drag it, and drop= it between the quotes in the editor -Modify the <html:form= > tag by inserting this attribute: +Modify the <html:form> tag by inserting= this attribute: The file should now look like this: - - - Input name - - - - validateGetNameForm(this)"> - - - - - - - -
Input name:
- - -
- - +<%@ taglib uri=3D"/WEB-INF/struts-html" prefix=3D"html" %> + + + + + + + + + Input name: + + ]]> @@ -150,34 +140,26 @@ Editing the JSP File Reopen inputname.jsp for editing -Delete the "onsub= mit" attribute in the <html:form> element that you put in for= client-side validation +Delete the "onsub= mit" attribute in the <html:form> element that you put in for client-side validation = -Add an <html:errors&g= t; tag after the &l= t;html:form> tag +Add an <html:errors/> tag after the = + <html:form> + tag The JSP file should now look like this: = - - + + - Input name - - - - - - - - - - - -
Input name:
- - -
-
- - + + + + + Input name: + + + +
]]>
= @@ -242,11 +224,11 @@ } = // public ActionErrors validate(ActionMapping actionMapping, - HttpServletRequest request) = - { - // ActionErrors errors =3D new ActionErrors(); - // return errors; - // } + // HttpServletRequest request) = + //{ + // ActionErrors errors =3D new ActionErrors(); + // return errors; + // } } ]]>
= --===============6065078234966763502==--