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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T21:48:44+00:00 2026-06-05T21:48:44+00:00

In my application I have many different JSP forms with multiple stages, that is

  • 0

In my application I have many different JSP forms with multiple stages, that is after each stage the request is send to the Servlet and processed to generate the next form.
The problem is that I need to keep the state of these forms (like in JSF where it is done automatically), so that the user won’t have to eneter all the data each time he gets to the error page or navigates back to reenter something he wants to change.

What is the best approach:
1) Store all data in the session, and remove it once the user submitted the final stage of the form.
2) Store it all in the request scope, and read/write each time the user navigates to the different page. However, this does not seem logical since if I save stage 1 and need its data in stage 4, I have to read/write it 3 times instead of just 1 time when using the session scope, and each time the amount of data to be read/written increases.

  • 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-05T21:48:47+00:00Added an answer on June 5, 2026 at 9:48 pm

    Both are doable, it depends on your use-case.

    • If you need a calculation after each step and need to send data to the server anyways, session is better.

    • If client is Javascript heavy, you can collect all data and only send it after the final step. This would work only if the steps do not depend on data entered.

    If you go for the session approach, be careful to make it work when the user opens your app in multiple tabs. This could be done by detecting the session attribute already in the session, or naming the attribute in a way that does not cause conflict.

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

Sidebar

Related Questions

I have an application that has many different types of objects that each persist
I am creating a web application that will have many users. Each user has
I have a C# winform application. it has many forms with different functionalities. These
In a typical MVC application we have validation that occurs in many different places.
I have an application with many different parts, it runs on OSGi, so there's
In my web application we have many users.I want to set permission for each
In the Rails application I’m currently developing I have many request models. We are
I've creating a Java Swing application and I realized that I have many many
I have an application where you can open many different items (like in excel
I have to use many different images into my windows phone application. Although I

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.