jsp - Javascript confirm box not able to submit form on selecting yes -
in jsp , clicking on button called sumbitform()
function below
document.data.formsubmit.value="yes"; document.data.action.value='sumbit'; document.data.submit();
here giving proper result , setting value occured on controller
in same jsp, calling onload
function ,in checking if command class variable set = occured confirmation box can show , after clicking yes button of confirmation box request should process.. used document.data.submit()
not working , not giving exception.
i think if(confirm("are sure want submit form ") == true ){ // submit form }
Comments
Post a Comment