/    Sign up×
Community /Pin to ProfileBookmark

Clearing data when using back button

I have a several JSP pages that help create a report. The first page you choose some options using check boxes. The second page you put those options in a certain order. The last page you choose the data you want to search for and it runs the report. The second and the last pages have a back button. The problem is when you use the back button and change some of your choices the old choices don’t always go away. What I need to do is erase the previous choice (which are contained in an array) when the back button is clicked.

One problem is that the array is declared in a different method than the one that determines what happens when the back button is pressed.

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @smithy4282 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...