jsp & Hashtable

Hi,

I am working with this code

<%@ page import="java.util.*" %>

<%Hashtable elementsnow =new Hashtable();%>

<%!int nu(){

Enumeration e = elementsnow.elements();

}

%>

and i get this error:

cannot resolve symbol

symbol : variable elementsnow

location:class desisoft_jsp_carr_jsp1183111283500

Enumeration e = elementsnow.elements();

^

1 error

is there something i am not declaring right?

what can i do?

thanks..

[716 byte] By [deroka] at [2007-11-27 9:15:57]
# 1

you can get data from HashTable like below:

Hashtable table1 = new Hashtable();%>

if (table1 != null) {

Set set= table1.keySet () ;

Iterator iter1 = set.iterator () ;

while ( iter1.hasNext () )

{

keyName = (String)iter1.next();

}

skp71a at 2007-7-12 22:05:27 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
thanks..
deroka at 2007-7-12 22:05:28 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...