I have a JSP report search page which displays error messages for missing mandatory fields using html:errors properties.
If a user gets these errors then performs a successful search, they get an excel results page in a new window with the content type for the page as "application/vnd.ms-excel".
The problem is that the 'parent' report search page still displays the errors. The action class sends it's response to the new window so the original page is not refreshed. I need to display the search criteria on the original page but remove the errors when a user performs a successful search.
2. From the server side, the action class can only send one response which we currently send to the results window. I cannot refresh/rebuild the search page AND forward to the results page.
If I'm missing something obvious, please help......
Another way to do it would be to hide the message without actually removing it. If you're not familiar with the DOM, here's a link that will get you started: