I'm just trying code in HFSJ page 346-347 with a little modifications.
my code as per below
all above code compiled perfectly but when I run, it throw null pointer exception.
I realized in Person.java, I don't define name variable. Does it the cause of NPE?? but I think it should read the name from MyServlet.java when I call setName method.