Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

the function cancle() on jsp does not return control back to actionc lass  RSS feed

 
Anushka Kalkundri
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This the code written in jsp , i want to cancel all the database connection when i click on cancel button what do i do ???

function cancle(){
window.top.location = "upload.do";
//document.forms.form.action = "upload.do";
//document.forms.form.submit() ;
}

 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66141
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll need to handle that on the server, not in JavaScript. Make sure that the database connections are closed before you forward to the JSP.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!