posted 16 years ago
Hi all,
I'm just trying code in HFSJ page 346-347 with a little modifications.
my code as per below
Person.java
MyServlet.java
Test.jsp
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.
What did I miss here? thank you for any reply.
regards,
-Vierda Mila-