File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 13
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: 63865

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] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Clearing content of an 2D array
It's not a secret anymore!