aspose file tools
The moose likes JSP and the fly likes Clearing content of an 2D array Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Clearing content of an 2D array" Watch "Clearing content of an 2D array" New topic

Clearing content of an 2D array

Mayank Adhikari

Joined: Nov 17, 2012
Posts: 12
Hi All,

I am using a dynamic 2D Array in my jsp page and i want to clear the content of this array on refreshing teh page. But its showing me the old values.
Can some one suggest me how to clear teh content from an array in jsp page.

My Array: statBowList[][]
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 61983

AS the only things in a JSP are what you put there, simply do not populate the JSP with what you don't want.

Of course, you should not be putting Java code into a JSP at all. That's an obsolete practice from over 10 years ago.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Consider Paul's rocket mass heater.
subject: Clearing content of an 2D array