This week's book giveaway is in the Server-Side JavaScript and NodeJS forum.
We're giving away four copies of Micro Frontends in Action and have Michael Geers on-line!
See this thread for details.
Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

proxy timeout causing problems in servlet [serious]

Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all
i've a servlet rendered form submitted to another servlet. now, the problem is- we have to use proxy in the browser to access the url and form and the 'SAVE' button on the form have to go through long processing to save data.
i have 'SAVE' and 'SUBMIT' button the form which are meant for follolwing,
1. 'SAVE' will save the entered data and come back with the form again
2. 'SUBMIT' will mark the form data as done in database and will display completed message to the user
the problem occurs as proxy times out and i get error message "DOcument contains no data" in Netscape4.7* and 7.*. Sometimes this is okay as the data seems to be saved in backend so if I just refersh the page it comes up again with the form with latest data BUT sometimes I think it doesn't save
i can't just fork a background processing here upon SAVE as the servlet needs to get back with the form w/ latest data on SAVE. if it would have been SUBMIT where the form is in done state then i am going to fork a background processing from the servlet via Runtime.exec() and running another java program to do submission to the database AND just send confirmation to the user that they are done and after few hours their data will be seen as 'done' you know...
on SUBMIT this was a serious problem in Netscape (in IE it worked) because it was somehow re-submitting automatically after some time and hence i used to get duplicated data in database upon SUBMIT even if we hit submit only once. BUT that problem should be solved now as i will fork backgroun process to do the job and just immediately confirm user that they are done so the browser proxy doesnt time out and Netscape does anything funny.
in IE also i get similar Timeout error but it doesnt result into multiple submits automatically as i mention in above paragraph...and anyways i must fix for netscape as client use netscape...
any ideas?
These are the worst of times and these are the best of times. And this is the best tiny ad:
the value of filler advertising in 2020
    Bookmark Topic Watch Topic
  • New Topic