<%@page contentType="text/html"%>
<%@page import="java.util.*,java.io.*"%>

<%!  int s; %> 
<%!  int f; %> 


<%
File dir = new File( "D:\\SUMIT GARG\\Excel" );
String[] files = dir.list();
Hashtable hs=new Hashtable();


for(int i=0;i<s.length;i++)
                    {
                        File v1= new File("D:\\SUMIT GARG\\Excel" +s[i]);
                            if(v1.isFile())

{
hs.put(f.lastModified(),file);
}
}


Vector v=new Vector(hs.keySet());
Collections.sort(v);
if(v.size()>10)
v.setSize(10);
Iterator it=v.iterator();
%>


<%
while(it.hasNext())
{
Long l=(Long)it.next();
String fname=(String)hs.get(l);
%>

<%=fname%> <%=new Date(l)%> 

<%
}
%>

plz correct the following code plzzzzzzzzzzzzzzzzz

I'm going to feel really stupid if I'm wrong but is this even Javascript? It looks like ASP or something.

I'm going to feel really stupid if I'm wrong but is this even Javascript? It looks like ASP or something.

I dont think u are cause it definitely does not look anything like javascript, it is java scriptlets, which should not be used at all.