Raible's Wiki

Raible Designs
Wiki Home
News
Recent Changes

AppFuse

Homepage
  - Korean
  - Chinese
  - Italian
  - Japanese

QuickStart Guide
  - Chinese
  - French
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish
  - Japanese

User Guide
  - Korean
  - Chinese

Tutorials
  - Chinese
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish

FAQ
  - Korean

Latest Downloads

Other Applications

Struts Resume
Security Example
Struts Menu

Set your name in
UserPreferences


Referenced by
Articles
Articles_cn
Articles_pt
Articles_zh
CreateManager_zh
ValidationAndList_zh




JSPWiki v2.2.33

[RSS]


Hide Menu

CreateActions_zh


Difference between version 7 and version 5:

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.
* &#22312;ApplicationResources_en.properties&#20013;&#28155;&#21152;JSP&#25991;&#20214;&#20986;&#29616;&#30340;&#26631;&#39064;&#21644;&#39064;&#22836;&#65292;&#22312;&#29983;&#25104;&#30340;JSPs&#37324;&#26377;&#20004;&#22788;&#26631;&#39064;(&#27983;&#35272;&#22120;&#39030;&#31471;&#26174;&#31034;)&#30340;&#20851;&#38190;&#23383;&#65292;&#36825;&#20123;&#23383;&#27573;&#25552;&#20379;&#20102;personDetail.title&#21644;personDetail.heading&#20851;&#38190;&#23383;&#21517;&#12290;
* &#22312;ApplicationResources.properties&#20013;&#28155;&#21152;JSP&#25991;&#20214;&#20986;&#29616;&#30340;&#26631;&#39064;&#21644;&#39064;&#22836;&#65292;&#22312;&#29983;&#25104;&#30340;JSPs&#37324;&#26377;&#20004;&#22788;&#26631;&#39064;(&#27983;&#35272;&#22120;&#39030;&#31471;&#26174;&#31034;)&#30340;&#20851;&#38190;&#23383;&#65292;&#36825;&#20123;&#23383;&#27573;&#25552;&#20379;&#20102;personDetail.title&#21644;personDetail.heading&#20851;&#38190;&#23383;&#21517;&#12290;
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 &lt;strong&gt;Abbie Raible&lt;/strong&gt; 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 &lt;strong&gt;Matt Canoo&lt;/strong&gt; has been deleted successfully."/>
<verifytext description="verify success message" text="${person.deleted}"/>
At line 472 changed 1 line.
''Next Up:'' __Part IV:__ [&#28155;&#21152;&#39564;&#35777;&#21644;&#21015;&#34920;&#39029;&#38754;|ValidationAndList_zh] - &#32473;personForm&#30340;firstName&#21644;lastName&#23383;&#27573;&#28155;&#21152;&#24517;&#28155;&#30340;&#39564;&#35777;&#36923;&#36753;&#21644;&#26174;&#31034;person&#25152;&#26377;&#35760;&#24405;&#30340;&#39029;&#38754;&#12290;
''Next Up:'' __Part IV:__ [增加校验功能和列表页面|ValidationAndList_zh] - &#32473;personForm&#30340;firstName&#21644;lastName&#23383;&#27573;&#28155;&#21152;&#24517;&#28155;&#30340;&#39564;&#35777;&#36923;&#36753;&#21644;&#26174;&#31034;person&#25152;&#26377;&#35760;&#24405;&#30340;&#39029;&#38754;&#12290;

Back to CreateActions_zh, or to the Page History.