0
<%@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

Edited by Dani: Formatting fixed

3
Contributors
2
Replies
3
Views
9 Years
Discussion Span
Last Post by Thirusha
0

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

0

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.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.