This discussion is archived
0 Replies Latest reply: Apr 19, 2013 7:52 AM by 1004196 RSS

How to set bean property when field is empty

1004196 Newbie
Currently Being Moderated
i am using <jsp:setProperty> in my jsp pages such that field values get stored in the bean properties

<jsp:setProperty name="adetails" property="*" />

The problem I am facing is for empty fields the bean is not getting called.

Suppose there is a Name field.
When I am writing a value in the field for example Ron ,its getting stored in the name property of adetails bean.
But afterward if I am erasing the value Ron and making the field empty the bean property is not changing.

Is there any way this can be accomplished.........I dont want to manually code for every field.....there are too many fields......:(


  • Correct Answers - 10 points
  • Helpful Answers - 5 points