• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Exception

 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Ajith_LSBU ",
Please check your private messages.
reply
    Bookmark Topic Watch Topic
  • New Topic