How to set a value in ActionForm to null in struts.

V

vamsi.aluru

Hi,
I have a ActionForm, i am having get and set methods on a
variable. I set this ActionForm in session and after I retrive the
value of the variable using the get method, I want to make the value of
this variable to null. When i do actionForm.setAbc(null), I got run
time exception , null pointer exception.

Is there a way to set the value in action form to null?

Please help.

Thanks
vamsi
 
D

David Linsin

I don't know if it works for you, but have you tried using the reset()
method?

David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top