Hello,everyone: thanks for reading this topic,and here is my question.
Question :When i getting value from the jsp,however a nullPointException comes out?below is my code,how does this problem come across?
Here is the steps:
(1).in my project, if one user login successfully (in the 'Login.jsp',i put this user into a session) ,then he can update his profile in the
"userUpdate.jsp".
(2).After that, the "UserAction" will deal with it with the new data.
Unfortunately,the "UserAction" can not get the 'session' even and the value from the jsp ,and a NullPointException come out
Note: i try to creat a new action class:"UserUpdateAction" and take the place of the method "UserUpdate" of the "UserAction", the Update become Ok
waiting for your help,thanks and best regards
Below are my codes:
1 . UserAction(a struts2 action):
NullPointException come across at line '53' and '54',that is to say:nothing can get from the jsp
2.
Here is my "userUpdate.jsp":