• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP setProperty to null

 
David J Smith
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

How can I reset an object in a bean, or nullify that object given that jsp:setProperty ignores any type of null or empty value? I have even tried

but to no avail.

The only thing I can think of as a workaround is to create a new property in the bean that will reset LeaveRequest in the bean object. I.e.

This seems a bit of a hack to me.
 
David J Smith
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, is it generally bad form to create these sort of void properties where you just set or get it to carry out a process, not to actually get data?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!