After adding/updating any value in DB, I want to display the same message like "Updated Successfully" in an alert box or a dialog page. I am using Struts2, Tiles and Hibernate.
I want a generic
jsp page which can accept a message. This message will be passed by other pages like add.jsp or update.jsp using
String return values.
How I can do this ?
I implemented this by using my own exception. Is it the right way ?
Please let me know how to do this.