At line 1 changed 1 line. |
__Part III:__ [创建Actions和JSPs|CreateActions] - 在[AppFuse]架构下创建[Struts|http://jakarta.apache.org/struts] 的Actions和JSPs。 |
__Part III:__ [创建 Struts Actions和JSPs|CreateActions] - 在[AppFuse]架构下创建[Struts|http://jakarta.apache.org/struts] 的Actions和JSPs。 |
At line 3 changed 1 line. |
;:''本教程依赖于__Part II:__ [创建管理器Manager|CreateManager_zh]。'' |
;:''本教程依赖于__Part II:__ [创建新的Manager|CreateManager_zh]。'' |
At line 6 changed 1 line. |
本教程将向你展示如何创建一个Struts Action,一个JUnit Test(使用 [StrutsTestCase|http://strutstestcase.sourceforge.net/]),和一个form的JSP,我们创建的这个Action将与教程[创建管理器Manager|CreateManager_zh]创建的PersonManager交互。 |
本教程将向你展示如何创建一个Struts Action,一个JUnit Test(使用 [StrutsTestCase|http://strutstestcase.sourceforge.net/]),和一个form的JSP,我们创建的这个Action将与教程[创建Managers|CreateManager_zh]创建的PersonManager交互。 |
At line 49 changed 3 lines. |
** web/personForm.jsp (察看单个文件的JSP文件) |
** web/personList.jsp (察看People列表的JSP文件) |
* 把Person.properties的内容拷贝到web/WEB-INF/classes/ApplicationResources_en.properties,这是所有form中需要的标题关键字,以下是你将要添加到ApplicationResources_en.properties的内容的例子: |
** web/pages/personForm.jsp (察看单个文件的JSP文件) |
** web/pages/personList.jsp (察看People列表的JSP文件) |
* 把Person.properties的内容拷贝到web/WEB-INF/classes/ApplicationResources.properties,这是所有form中需要的标题关键字,以下是你将要添加到ApplicationResources.properties的内容的例子: |
At line 60 changed 3 lines. |
person.added=Information for <strong>{0}</strong> has been added successfully. |
person.updated=Information for <strong>{0}</strong> has been updated successfully. |
person.deleted=Information for <strong>{0}</strong> has been deleted successfully. |
person.added=Person has been added successfully. |
person.updated=Person has been updated successfully. |
person.deleted=Person has been deleted successfully. |
At line 83 changed 1 line. |
* 在ApplicationResources_en.properties中添加JSP文件出现的标题和题头,在生成的JSPs里有两处标题(浏览器顶端显示)的关键字,这些字段提供了personDetail.title和personDetail.heading关键字名。 |
* 在ApplicationResources.properties中添加JSP文件出现的标题和题头,在生成的JSPs里有两处标题(浏览器顶端显示)的关键字,这些字段提供了personDetail.title和personDetail.heading关键字名。 |
At line 215 changed 3 lines. |
new ActionMessage("person.deleted", |
personForm.getFirstName() + ' ' + |
personForm.getLastName())); |
new ActionMessage("person.deleted")); |
At line 271 changed 3 lines. |
new ActionMessage("person.added", |
personForm.getFirstName() + " " + |
personForm.getLastName())); |
new ActionMessage("person.added")); |
At line 281 changed 3 lines. |
new ActionMessage("person.updated", |
personForm.getFirstName() + " " + |
personForm.getLastName())); |
new ActionMessage("person.updated")); |
At line 410 added 1 line. |
<verifytext description="verify success message" text="${person.updated}"/> |
At line 435 changed 2 lines. |
<verifytext description="verify success message" |
text="Information for <strong>Abbie Raible</strong> has been added successfully."/> |
<verifytext description="verify success message" text="${person.added}"/> |
At line 451 changed 2 lines. |
<verifytext description="verify success message" |
text="Information for <strong>Matt Canoo</strong> has been deleted successfully."/> |
<verifytext description="verify success message" text="${person.deleted}"/> |
At line 472 changed 1 line. |
''Next Up:'' __Part IV:__ [添加验证和列表页面|ValidationAndList_zh] - 给personForm的firstName和lastName字段添加必添的验证逻辑和显示person所有记录的页面。 |
''Next Up:'' __Part IV:__ [增加校验功能和列表页面|ValidationAndList_zh] - 给personForm的firstName和lastName字段添加必添的验证逻辑和显示person所有记录的页面。 |