Do it like this: In js file
function yourconfirmationjsfunction( urltogotoonok , urltogotooncancel) { var retValue = confirm(" Are you sure "); if(retValue == false){ window.location.href=urltogotooncancel; } window.location.href=urltogotoonok ; } In java file... construct these 2 urls using RequestCylce.get().urlFor methods to ur behaviors for example. Then call this js function using these 2 urls -swaroop On 10/25/07, Federico Fanton <[EMAIL PROTECTED]> wrote: > > Hi everyone! > I have a form with a submit button, and I need to implement a sequence > like this: > - user presses the button > - form submit > - server-side validation of submitted data > - popup with confirmation message (like javascript confirm() ) > - if user presses "yes", call Java method X > - if user presses "no", call Java method Y > > Is this possible? > Many thanks for your time! > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >