Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8173829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T22:17:55+00:00 2026-06-06T22:17:55+00:00

Our users return to our web site from an external site, to a URL

  • 0

Our users return to our web site from an external site, to a URL which is passed to the external site as a user leaves our site. Returning to our site involves a status update which is persisted to the application’s datastore.

I have implemented a check upon return to our web site, which prevents a multiple write to our datastore and thus makes the operation idempotent.

A typical order of events is:

  1. First post to our landing web page (web page instance 1 is constructing)
  2. First post passes check (data not processed before)
  3. Data persistence begins (still in the web page constructor)
  4. Second post to our landing web page (web page instance 2 is constructing), which is in the same session and browser window as the first post
  5. Second post fails check (data has been, or is being, processed already)
  6. Web page instance 2 constructor completes (with no persistence to datastore) and web response is served to the user
  7. Web page instance 1 constructor completes (after having persisted to datastore)
  8. The user does not see page instance 1 in their browser.

The end result is that, even though the second post is made after the first, the second post “completes” faster to the user and the user’s web browser shows instance 2 of the page, not instance 1.

My questions are:

  • Is there any way I can have the first, datastore-processing, page instance shown to the user (and thus “throw away” the second page instance)?
  • If so, can this be done without using AJAX?

I would appreciate any assistance greatly.

My development environment

  • Web framework: Wicket 1.5.7
  • Java: 1.6.0_33; Java HotSpot(TM) Client VM 20.8-b03
  • Web server system: Google App Engine for Java version 1.6.6
  • Operating system: Microsoft Windows XP Home Edition version 2002 SP3 (version 5.1 running on x86; Cp1252; en_GB)
  • IDE: NetBeans IDE 7.1.2 (Build 201204101705)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T22:17:57+00:00Added an answer on June 6, 2026 at 10:17 pm

    Thank you to @svenmeier for your first tip. My solution follows this approach. I have decided to have page instance 2 wait repeatedly if necessary instead of following @Carl-EricMenzel’s suggestion of redirecting.

    Referring to my order of events as set out in my question, step 6 is replaced by:

    6.1 If data is being processed already, page instance 2 waits repeatedly whilst checking after each wait.

    6.2 After all the waiting, page instance 1 will have completed step 7 (and 8). If not, then page instance 2 completes construction.

    6.3 If the data processing of instance 1 succeeded then page instance 2 shows success to the user.

    6.4 If the data processing of instance 1 failed then page instance 2 processes the data and shows the result (success/fail) to the user.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Many of our users, internal and external, start our web application. Then at some
Our users log into the production database as a fairly low-level user, with SELECT
A number of our users have just upgraded from IE6 to IE7. the upgreaded
I'm using cURL to get a web page and present to our users. Things
I've just built a basic ASP MVC web site for deployment on our intranet.
In the university we must develop an android application, which grabs our marks from
Our website selects establishments from a query and returns the results to the user
We allow users to set some preferences in our web application. When they login
We have a web site that requires users to signup and they then receive
Each of our users is assigned to a primary organizational unit (OU) based on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.