Two Laptop Bag
The moose likes JSP and the fly likes Clearing content of an 2D array Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply 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: 56157
    
  13

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.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel
 
subject: Clearing content of an 2D array
 
Similar Threads
array
Displaying 2D array using data tables
Illegal State Exception
getting 2D array view in jsp from actionform properties
Finding number of a rows in a resultset...