• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

file not displaying on other LAN systems

Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all..
here i am passing folder name as parameter and taking that path,am listing out all the files in that folder with theire name s in one frame(fileview..name of the frame) and if i click on that name it is dispalying in other frame (reportview..name of the frame).it is working fine in local host but not in lan systems..
what could be the problem?i used file: before path and also tried with http://localhost:8080/ranhill/webreports/rhreports....here is the code i've used...
plz advise me the best way to deal with it
thanks in advance..

<body bgcolor="#455667" text ="silver" alink=red vlink=silver >
<%@ page errorPage = "errorpage.jsp" %>
<%@ page language = "java" import ="java.util.*" %>
<%@ page import ="java.io.*" %>
<%@ page import ="java.util.Vector" %>
<%@ page import = "java.util.Iterator" %>
String path="c:\\tomcat\\webapps\\ranhill\\RHReports\\"+request.getParameter("projects");
System.out.println("this is selected project report:"+path);

File dir = new File(path);
String[] files = dir.list();
for(int i =0 ; i<files.length; i++)
<table cellpadding="1" cellspacing="1" bordercolor="pink">
<tr><td bgcolor="#455667" width="30"> <h4><b>
<a href=<%= path+"/"+files[i] %> target = "reportview"> <%= files[i] %> </a>
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic