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?
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.