File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 Murach's Java Servlets and JSP this week in the Servlets forum!
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: 60752
    
  65

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Clearing content of an 2D array
 
Similar Threads
Displaying 2D array using data tables
array
Finding number of a rows in a resultset...
getting 2D array view in jsp from actionform properties
Illegal State Exception