Invoking JavaScript
Hi, ye Wizards of Spring!
Consider the following scenario:
A user is presented with a searchform of some kind. He/she enters applicable search criteria in an awesome rich user interface 8), and press the "Search" button.
But, alas, no corresponding item is found in the database. So the user is presented a JavaScript dialog saying something like "No items found" instead of a boring empty result view or even another JSP-page with a similar message. On closing the JavaScript dialog the application of course is ready for another search session in the searchform.
How do I implement this?
Thanks in advance!
Sincerely,
/The Cantor
"Murphy was an optimist"
(The O'Toole commentary on Murphy's Law)