JSP save button and page message

What Im trying to do is have a jsp page with a save button and when this save button is pressed the page shows a message which declares that "the data had been saved" and on the same page as where the button is.

Is there anywhere I can find out how to do that as it involves both javascript and jsp?

I think I should be using hidden input types but am not sure how to use these to ensure the message appears on the same page

Message was edited by:

scorpion2

[489 byte] By [scorpion2a] at [2007-11-27 7:42:03]
# 1

I assume that when they press the save button it is going to be making a backend call to do the saving?

If that is the case then after doing the save in the backend then you can just put an object out in session that contains your save message. Then when the page is reloaded, put that message in a hidden field and display the contents if populated during the body onload event.

gmachamera at 2007-7-12 19:22:47 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...