Skip to content

Instantly share code, notes, and snippets.

@shaik2many
Created June 2, 2014 20:40
Show Gist options
  • Select an option

  • Save shaik2many/4499978a5518ce335095 to your computer and use it in GitHub Desktop.

Select an option

Save shaik2many/4499978a5518ce335095 to your computer and use it in GitHub Desktop.
<%
String filename = "/sanvol/app/folder1";
out.println(filename);
java.io.File f = new java.io.File(filename);
out.println(f.isDirectory());
javax.naming.InitialContext ic = new javax.naming.InitialContext();
javax.sql.DataSource ds = (javax.sql.DataSource) ic.lookup("java:oasDS");
out.println(ds);
%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment