This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have a requirement where in once i click on a link in a jsp page i will have to show a form in a popup window. And once i submit the form the pop-up window needs to be closed. I'm able to do the same by using java script function window.open("URL of action for showing the form',window properties). I'm able to submit the form also. However, my problem is when i have an error situation during my submit then i'll have to display the error message in the parent jsp after closing the pop-up window. I have declaratively handled the exception by giving the parent page as the input but when there is an exception my parent page is not refreshed and error message is not displayed. How do i achieve the same ? Any help will be greatly appreciated.
Normal handled exceptions can be caught and a message can be set in the request object ( or you can have it in bean ), and this message can be shown on JSP.Modify your parent JSP suitably to show the messages.Ensure that you clear the message evry time in the action to avoid an old message from popping up later.