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

  • SEARCH
  • Home
  • 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 7541471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T07:54:03+00:00 2026-05-30T07:54:03+00:00

I am building a web application using Servlet 2.5, and I have encountered a

  • 0

I am building a web application using Servlet 2.5, and I have encountered a need to make it so that a user cannot click a button and do an action and then press F5/Refresh and do the action again.

Two ways that I have pondered about to combat this (but not really given much thought yet; thinking it’s best to ask here first):

  • When an action has been done, I call on a redirect, effectively clearing any query parameters
  • When an action has been done, I add a randomized hash and check on the next entry if it has changed or not? (not sure how to know if the next action is a refresh or an actual new request here, though)

Or is there a more simple/standardized way of doing this either with Tomcat/etc or some commons library?

  • 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-05-30T07:54:04+00:00Added an answer on May 30, 2026 at 7:54 am

    Your first idea is correct. The pattern is called redirect after post. If you use any advanced web development framework it should support this out of the box.

    You should use the HTTP verbs correctly. If it is a HTTP GET it should be no problem to call it more than once.

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

Sidebar

Related Questions

I am building a web application and have been told that using object oriented
I'm building a web application using Stripes and Spring. It needs to have a
I am building a web application using ASP.NET MVC that has two very distinct
I'm building a web application using PHP5.3 and Zend Framework 1.9.4. i have an
in a web application I am building I need to upload photos without using
I'm building a web application (using prototype) that requires the addition of large chunks
I'm building an ASP.NET web application using NHibernate and a legacy database. In that
I have a web-application on RAD 7.5. I am building the application using Maven
I am currently building a java-servlet-based web application that should offer its service to
I'm building web app that needs to communicate with another application using socket connections.

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.