Redirect a page and pass some message
If you want to redirect a page with some message can be add the following code to your servlet coding.
RequestDispatcher rd = request.getRequestDispatcher("Resource File's url");
Object obj=new Object();//add content to obj
You can get the object in your resource file by using