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 8813273
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:48:26+00:00 2026-06-14T03:48:26+00:00

I am trying to implement some flow control in Play 2.0.3, kind of a

  • 0

I am trying to implement some flow control in Play 2.0.3, kind of a wizard with several steps. What is the best way to do it in Play?

I want to have multi-step flows, like step1 -> step2 -> finish

The main problem is not to allow user to skip for example step2 and go straight to finish (user can manually input a link in the browser /finish ).

Thanks. Please let me know if I haven’t explained myself well.

  • 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-14T03:48:27+00:00Added an answer on June 14, 2026 at 3:48 am

    A completely stateless way could consist in storing all data in the URLs of steps, where the step n + 1 contains all data from step n:

    GET   /step1    controllers.Application.step1
    GET   /step2    controllers.Application.step2(dataFromStep1)
    GET   /step3    controllers.Application.step3(dataFromStep1, dataFromStep2)
    POST  /finish   controllers.Application.finish
    

    The advantages of this solution are its simplicity and the fact that checking that all required steps have been completed before the next step is performed for free by the Play! router.

    However, if you have a lot of data your URLs will be huge, making this solution less applicable. In such a case, you need to:

    • save data of each step to a persistent storage (using the session is yet another option, but limited in size to 4KB) ;
    • identify your users so e.g. the /step2 URL won’t return the same thing for different users ;
    • set a timeout to discard an incomplete submission and clean your persistent storage ;
    • manually check in your business code that all steps have been completed for the final submission.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to implement some kind of new Linux task scheduler so I
I'm currently trying to implement some kind of search system in a program of
I'm currently trying to implement some kind of file browser / explorer into a
I am trying to implement some kind of console menu wich has to retrieve
I'm trying to implement some kind of 'multiprocessing' in php for my task. The
I am trying to handle flow control situation on producer end. I have a
I'm trying to implement some kind of drag and drop snap to grid similar
I am kind of trying to get the flow of core plot. I have
Currently I'm trying to implement some kind of object stream, similar to the structure
We're trying to implement some sort of Chess game and we have defined an

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.