This week's giveaway is in the Java/Jakarta EE forum.
We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line!
See welcome thread
Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

proxy timeout causing problems in servlet [serious]  RSS feed

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?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!