Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Exception

 
Ajith Prasad
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a JSP with register button to get the user credentials namely UserName and Pwd. When the click on the register button, it calls the servlet and those user credentials are inserted in the database.
Now i click the register button and i closed the browser immediately, the following questions i have,

1)will those user credentials are inserted in the database?
2) if user credentials are inserted, will any excpetion been thrown on the serverside?
 
Chetan Parekh
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you click on register button, you submits form. Request sent to server for processing. Now you are closing browser, but server is not aware of browser close event - hence server will insert details in database.

I am not sure, if any exception will be thrown on server when server tried to send responce to the browser (which is already closed).
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Ajith_LSBU ",
Please check your private messages.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!