Article:
 |
|
Java Web Development with Stripes
|
| Subject: |
|
Code typo? |
| Date: |
|
2007-01-25 11:08:32 |
| From: |
|
garthabrindoid
|
|
|
|
Is the code for HelloWorldAction in the first code snippet correct? I'm confused about how this part in particular:
private Person person;
...
public void setPerson(String person) {this.person = person;}
public String getPerson() { return person;}
Judging by the setter and getter, person should be a String and not a Person, right? Or are the getter and Setter wrong?
|
Showing messages 1 through 3 of 3.
-
Code typo?
2007-01-25 11:41:14
mjeagle
[View]
-
Code typo?
2007-03-13 22:39:37
keytasks
[View]
-
Code typo?
2007-03-14 05:46:50
mjeagle
[View]
public void setPerson(Person person) {this.person = person;}
public Person getPerson() { return person;}
Sorry for the confusion.
Mark