| Author |
Setting Struts 2 Checkbox checked / unchecked value as yes / no instead of true / false
|
Mitesh K Agrawal
Greenhorn
Joined: Aug 02, 2012
Posts: 5
|
|
Hi All,
I am using struts 2 framework. I have got checkbox which while saving , saves true / false if it is checked / uncheked.
Instead of true / false I want to change it to yes / no. I tried a lot, even googled but no luck.
Can anyone please tell me is there any configuration or setting where I can achieve my requirement.
Thanks in advance
|
 |
jatan bhavsar
Ranch Hand
Joined: Jul 23, 2008
Posts: 296
|
|
Hi Mitesh,
If you are getting values true/False then why dont you put simple condition when value is true store yes and when false save no.
Regards
Jatan
|
 |
Mitesh K Agrawal
Greenhorn
Joined: Aug 02, 2012
Posts: 5
|
|
Thats true I can do that if the checkbox used once or twice in my product. But what if it has been used more than 100 times, I can't go and put that condition everywhere.
Though It can be done but it is very time taking and tedious job. Thats why I am looking for such setting or configuration where changing in one or two places will effect in all places.
If at all no such configuration available , what you said is my last option
|
 |
Mitesh K Agrawal
Greenhorn
Joined: Aug 02, 2012
Posts: 5
|
|
|
Waiting for the response guys
|
 |
 |
|
|
subject: Setting Struts 2 Checkbox checked / unchecked value as yes / no instead of true / false
|
|
|