Please check these 2 lines of your code more
carefully.
Teacher teacher= null;
teacher.setLast(teacherAddForm.getLast());
Because teacher is null. When you called
teacher.setLast(...), NullPointerException occured.
Regards
-
Well... doublecheck your mapping in struts config. If you misspelled the
class name or got the wrong form name struts can be rather silent about it
and just give you a null form!
-Original Message-
From: as as [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 2 March 2004 00:29
To: [EMAIL
Try changing the name attribute in your config file to be
TeacherAddForm instead of teacherAddForm.
HTH.
Daniel
-Original Message-
From: as as [mailto:[EMAIL PROTECTED]
Sent: Monday, March 01, 2004 8:29 AM
To: [EMAIL PROTECTED]
Subject: java.lang.NullPointerException struts form is
hi
excuse me, can you tell me can i unsubscribe from this mailig list
thanks a lot
- Original Message -
From: Daniel Kalcevich [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, March 01, 2004 5:40 PM
Subject: RE: java.lang.NullPointerException struts form
Try sending an empty email to
[EMAIL PROTECTED]
Daniel
-Original Message-
From: Tarik El Berrak [mailto:[EMAIL PROTECTED]
Sent: Monday, March 01, 2004 9:02 AM
To: Struts Users Mailing List
Subject: Re: java.lang.NullPointerException struts form is null
hi
excuse me, can you tell me
Users Mailing List; Tarik El Berrak
Subject: RE: java.lang.NullPointerException struts form is null
Try sending an empty email to [EMAIL PROTECTED]
Daniel
-Original Message-
From: Tarik El Berrak [mailto:[EMAIL PROTECTED]
Sent: Monday, March 01, 2004 9:02 AM
To: Struts Users Mailing List
6 matches
Mail list logo