This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
What I am trying to acheive is when I change anything on the "notes" property, I am not able to see the changed value in the action when I submit. Previously I used to get a null pointer exception so I have made the scope session. This solves the exception but that does not show the changed value of the notes.
If you put a code like
(see I have changed the name to actionform in the above snippet) it will work fine, because the "notes" property will be in the form. But if you put a bean inside a form and then try to change it, when you submit I am not able to store the changed property of the bean in the form.
What I mean is after submitting, in the action class:
The value printed shows the previous values of the property "notes" not the updated values from the jsp. So I have to store the changed value of the bean in the form.