You can write the response to the JSP page and in the form page use the onComplete event to return the response text
$('myFormID').request({ method: 'post', onComplete: function(request) { alert(request.responseText); } }); so anything written in the JSP page (including html) will come back in the responseText. On Mar 8, 11:21 am, samson <sbeke...@gmail.com> wrote: > I use the prototype request() function to sumbit my form to a JSP > page. It work fine and I am able to save the data to the database. But > I need to return a message to the form page if the JSP page > successfully save the data. Here is an example > > I have a page called person.jsp and all the form field in this page. > When a user click on save button I use the prototype request function > and send the form variable to save.jsp page with out sumbitting the > form. But I want to return a message to person.jsp if there is success > or failer on save.jsp page. > > Thanks, > Samson -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.