Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

JSP Page Loop & Parameter Problems

Options
  • 07-03-2006 4:43pm
    #1
    Closed Accounts Posts: 32


    Hi

    I am in serious trouble with my project and stuck on this part for several days now.

    I am using jsp (a quite new technology to me) and trying to create a form with a pending holding action which loops back to the form.

    There are 2 people needed PlayerA and PlayerB

    I want PlayerA to enter their order amount through the form into the database (1.jsp).
    I want PlayerB to enter their order amount through the form into the database (1.jsp).

    If PlayerA hasn't entered their amount yet and PlayerB has then PlayerB pauses at the next page (2.jsp).
    If PlayerB hasn't entered their amount yet and PlayerA has then PlayerA pauses at the next page (2.jsp).

    This page is under a constant refreshing action.(javascript)(2.jsp)

    If PlayerB has entered their amount PlayerA creates a new empty row in the database (2.jsp).

    If there is a new empty row in the database then both players return to the first page(1.jsp).

    When I return to the first page (1.jsp) because the parameters ?submit=true&amount=2 the page continues looping entering new rows and the same values into the database until I manually stop it.

    Has anyone any idea how to delete the parameters "?submitvalue=true&amount=2" so that when I return to the original page it does not continue looping but stops and allows users to enter new values.


    submitvalue is a hidden parameter set in the form in (1.jsp).
    amount is the text input box amount (1.jsp).


    Thanks in advance


Comments

  • Registered Users Posts: 1,275 ✭✭✭bpmurray


    Wow, that's difficult to understand! Important questions:
    1) When the JS is doing its "constant refreshing action", how is it doing this? XmlHttpRequest?
    2) What's generating the URL? Ar you dynamically adding the params?
    3) What server are you using? Are you now, or will you ever use a portal server? If so, any possibility that you'll use WSRP?

    These all have a bearing on the solution.


Advertisement