Newsletter sign-up
View all newsletters

Enterprise Java Newsletter
Stay up to date on the latest tutorials and Java community news posted on JavaWorld

JavaWorld Daily Brew

How to display success message on JSP



Hello All,

Could somebody help me with displaying a success message on jsp. I have a page which has to edit two fields and store it in the database. After updating the fields I want to mention the "update success" message on the same filed.
I learnt that I have to use Action Messages for this purpose. But I do not know exactly where I've to make changes in the code.
I have three files with me
update_company_profile.jsp
update_company_profile_form.jsp (this has the getter and the setter methods)
update_company_profile_action.jsp
Could somebody please help me with an example. This is the first time I am developing a web application. I am using jsp, struts, spring and hibernate.
Thanks in advance.