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_pt
CreateActions
CreateDAO
CreateDAO_sp
CreateDAOiBATIS
CreateDAOiBATIS_ko
CreateManager_es
JSFBeans
SpringControllers
...and 3 more




JSPWiki v2.2.33

[RSS]


Hide Menu

CreateManager


Difference between version 15 and version 14:

At line 94 changed 2 lines.
<span style="color: green">// call populate method in super class to populate test data
// from a properties file matching this class name</span>
// call populate method in super class to populate test data
// from a properties file matching this class name
At line 165 changed 1 line.
<span style="color: green">//~ Instance fields ========================================================</span>
//~ Instance fields ========================================================
At line 172 changed 1 line.
<span style="color: green">//~ Constructors ===========================================================</span>
//~ Constructors ===========================================================
At line 179 changed 1 line.
<span style="color: green">//~ Methods ================================================================</span>
//~ Methods ================================================================
At line 181 changed 4 lines.
public Object getPerson(String personname) throws Exception {
person = dao.getPerson(personname);
return convert(person);
public Object getPerson(String id) throws Exception {
person = dao.getPerson(Long.valueOf(id));
personForm = new PersonForm();
BeanUtils.copyProperties(personForm, person);
return personForm;
At line 193 changed 1 line.
<span style="color: green">// copy form properties to person</span>>
// copy form properties to person
At line 201 changed 1 line.
<span style="color: green">// BeanUtils.copyProperties converts empty Strings to
// BeanUtils.copyProperties converts empty Strings to
At line 203 changed 1 line.
// Setting the defaultLong to null (in BaseManager) is another solution</span>
// Setting the defaultLong to null (in BaseManager) is another solution
At line 210 changed 1 line.
return getPerson(person.getId());
return getPerson(person.getId().toString());
At line 226 removed 2 lines.
}

Back to CreateManager, or to the Page History.