ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
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?


1 to 1 of 1
  1. Code typo?
    2007-01-25 11:41:14  mjeagle [View]

1 to 1 of 1