aspose file tools*
The moose likes Servlets and the fly likes proxy timeout causing problems in servlet [serious] Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "proxy timeout causing problems in servlet [serious]" Watch "proxy timeout causing problems in servlet [serious]" New topic
Author

proxy timeout causing problems in servlet [serious]

Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1873
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?
regards
maulin
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: proxy timeout causing problems in servlet [serious]