*
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
Author

Clearing content of an 2D array

Mayank Adhikari
Greenhorn

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
Marshal

Joined: Jan 10, 2002
Posts: 61657
    
  67

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]
 
 
subject: Clearing content of an 2D array