• Post Reply Bookmark Topic Watch Topic
  • New Topic

How can I stop the execution on a JSP page and start it again  RSS feed

 
mette sor
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone know how I can stop the execution on a JSP page and start it again (on same page)
I have tried to put in an alert box but this does not prevent the rest of the java code being executed.
i=0;
While (i < 2)
{
if( i==1)
%>alert(�The transactions commits when you press Ok�);<%
//the program should not execute the commit statement before the user has clicked ok.
else
stmt.executeUpdate(�commit�);
count++;
}
[ April 04, 2004: Message edited by: mette sor ]
 
Greg T Robertson
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well as you have seen the procedure of mixing javascript & java does not work. it sounds to me like what you should really be doing is a post or get to a servlet or JSP where a previous page is your "user confirmation" page.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!