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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T20:14:32+00:00 2026-06-01T20:14:32+00:00

I have in simulation.jsp the following code, by which I receive some simulation data

  • 0

I have in simulation.jsp the following code, by which I receive some simulation data from struts2 action:

$(document).ready(function() {
var data='<s:property escape="false" value="simInfos" />';
}

Now I do some simulation with this data. After the simulation has been done, how can I reload/refresh this page with button-click without losing this data, which I have received from struts2 action?

  • 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-01T20:14:33+00:00Added an answer on June 1, 2026 at 8:14 pm
    $(document).ready(function() {
        var data='<s:property escape="false" value="simInfos" />';
        localStorage["myData"] = data;
    
        // later on (maybe after page refresh, whatever)
        var myLoadedData = localStorage["myData"];
    }
    

    You can treat HTML5’s localStorage like any other object, although it has specific setter and getter functions and can only store strings. Don’t treat it like a permanent cache though, just a place to store some data for a little while. Another reference.

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

Sidebar

Related Questions

I have a simulation in which I need to dump large amount of data,
I have a code base that deals with simulation of certain data. It involves
I have a class (simulation) which creates an instance of another class (GUI). Inside
my situation is the following: I have a project with JSP, Struts and a
I have the following situation: after clicking a button, some business logic is done
I have a simulation program which repeats a set of functions in a specific
I have the following situation: taglib.jar : A custom JSP taglib packaged as a
I have the following scenario . There is a jsp (let's call it user.jsp)
I wonder if anyone can advise? I have a JSP which contains two forms,
I have a situation where I would like to retrieve data from the session

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.