I have an int variable declared something like this <% int promptId = 0; %>
in first jsp and I want to use exactly the same variable in other page, included in first jsp with jsp:include
, and I don't know how to do it to be possible to modify that variable in second page and all modification what it will come to be recognized in all pages.
Everything what I've tried was unsuccessful and it gives me this error:
promptId cannot be resolved to a variable