When we create Struts2 checkbox using below code
<s:checkbox name="checkMe" fieldValue="true" label="Check Me for testing"/>
It gives below HTML representation (I am referring to http://ift.tt/2mMyBVQ)
<input type="checkbox" name="checkMe" value="true" id="xx_checkMe"/>
<input type="hidden" id="__checkbox_xx_checkMe" name="__checkbox_checkMe" value="true"/>
<label for="resultAction_checkMe" class="checkboxLabel">Check Me for testing</label>
Is there anyway to eliminate creating hidden parameter because it is causing security vulnerability for my application
Aucun commentaire:
Enregistrer un commentaire