Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How to set bean property when field is empty

1004196Apr 19 2013
Hi,
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......:(

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on May 17 2013
Added on Apr 19 2013
0 comments
924 views