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

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -