Struts2: Is there a way that checkbox directly links to action class when checkbox is checked? -


for eg:

<s:checkbox name="checkme" fieldvalue="true" label="check me testing" action="someactionclass"/> 

when checkbox selected, control not redirecting particular action class method.

you must use javascript problem , toggle action of form according change event of checkbox.

here's example using jquery:

$('#checkboxid').change(function() {      if(this.checked) {          // when checked, change action.      } else {          // else      } }); 

Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -