I want to redirect to a particular page, but before that, I want to display a different HTML page containing a message.
Troy Niven The User not validated and the Error Message doesn't get displayed at all . I first want it to be displayed , and then after 10 seconds , I want to redirect the servlet to my OpeningPage
How is that possible ???]
Try something like this instead then.
res.setHeader("refresh","10; URL=http://" +req.getServerName()+"/Openingpage.html"); out.println(" User not Validated"); out.println(e.getMessage()); out.close();