It's not a secret anymore!
The moose likes JSP and the fly likes Need show pdf files in separate frame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Need show pdf files in separate frame" Watch "Need show pdf files in separate frame" New topic

Need show pdf files in separate frame

venu v gopal v

Joined: Apr 26, 2010
Posts: 6

I got the pdf links from the specific folder using my java code to my jsp and i need to show these links as tree view and display in a separate frame.
could you please help me in getting this code.

and my code is
<%@ page language="java" import="java.util.*" %>
<%@ page language="java" import="*" %>
String s2=null;
ArrayList al = new ArrayList();
ArrayList al2 = new ArrayList();
File folder = new File(
"C:\\Program Files\\Apache Software Foundation\\Tomcat 5.5\\webapps\\Smplepdf");
File[] listOfFiles = folder.listFiles();
for (int i = 0; i < listOfFiles.length; i++) {
if ((listOfFiles[i].getName()).endsWith(".pdf"))
s2 = listOfFiles[i].getName();

//String s1=list.getPath();

for(int i=0;i<al.size(); i++)
out.println("<a href='"+al.get(i)+"'>"+ al.get(i)+"</a>");
// <a href="+a1.get[i] +" target="_blank" onlcik="openMyModal('a1.get{i]); return false;"> click to open</a>



I agree. Here's the link:
subject: Need show pdf files in separate frame
jQuery in Action, 3rd edition