I need to display the value of this array. one value at a time in a same jsp page. The jsp page contains a button.
when i click the button it should redirect to the same page and the next value should be printed.
I got the logic for the redirecting to the same page.
Please help me in printing first, second and third value of this array on corresponding visit of the particular JSP page.
posted 5 years ago
Put a counter as an attribute in the most appropriate scope and increment it with each hit of the submit button, use this to identify the index of the array.
Just a thought, there may be a better way than this.