Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2004
    Location
    London, uk & Denmark
    Posts
    5

    Question Unanswered: How can I stop the execution on a JSP page and start it again

    Hi

    I am making a program that simulates how to manage transactions when accessing a database by using locks. I have run into a problem and I hope someone has the time to help me.

    When a user does an update the transaction commits and releases its locks when the program executes

    <%stmt.executeUpdate(“commit”); %>.

    I need to put a break in to stop the program executing this statement, to illustrate the lock is set correctly.

    • I have tried to put in an alert box but this does not prevent the rest of the java code being executed.

    • I have tried to use prompt boxes, JavaScript functions, but these functions cannot have any java code in them.

    • I have tried using the java.swing JOptionPane boxes but they cannot be used in jsp applications

    • I have tried to get input from the user but I don’t know how to retrieve this data on the same page. (As far as I know you have to use submit and even refresh the page or retrieve it on the next page).

    Does anyone know how I can stop the execution on a JSP page and start it again (on the same page)

    Mette

  2. #2
    Join Date
    Jun 2003
    Location
    Toronto, Canada
    Posts
    5,516
    Provided Answers: 1

    Re: How can I stop the execution on a JSP page and start it again

    Originally posted by mette
    Hi

    I am making a program that simulates how to manage transactions when accessing a database by using locks. I have run into a problem and I hope someone has the time to help me.

    When a user does an update the transaction commits and releases its locks when the program executes

    <%stmt.executeUpdate(“commit”); %>.

    I need to put a break in to stop the program executing this statement, to illustrate the lock is set correctly.

    • I have tried to put in an alert box but this does not prevent the rest of the java code being executed.

    • I have tried to use prompt boxes, JavaScript functions, but these functions cannot have any java code in them.

    • I have tried using the java.swing JOptionPane boxes but they cannot be used in jsp applications

    • I have tried to get input from the user but I don’t know how to retrieve this data on the same page. (As far as I know you have to use submit and even refresh the page or retrieve it on the next page).

    Does anyone know how I can stop the execution on a JSP page and start it again (on the same page)

    Mette
    java.lang.Thread.sleep()

  3. #3
    Join Date
    Mar 2004
    Location
    London, uk & Denmark
    Posts
    5
    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •