Hi,
In order to prevent double submission on a form, I intend to display a temporary web page after the first submit, informing the surfer to wait while his transaction is in progress. The program will continue to process the transaction and display a 2nd web page when the transaction is successful. Does anyone knows how this can be done using
servlets? I tried the following in doPost:
RequestDespatcher.include(req, res) //use include to display the temp page
//process the trxn
RequestDespatcher.forward(req, res) //display the successful trxn web page
but encountered "Cannot forward a response that is already committed"
I'm new to
Java so I would really appreciate if someone could help me out.
Thanks!