• 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 ...
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

To create a web page to show all the files in a unix directory.

Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My requirements are given below-
-1. To create a web page to show all the files in a unix directory.
2. Contents of the file should be displayed clicking on it.
3. If any new file is added in that directory, corresponding hyperlink should be created automatically on the webpage.

Solution : I have created following jsp running on WEBLOGIC server to fulfill the above req.
it is catering to the points 1 & 2 but I need to redeploy the application again if a file is added to directory

Problem : How do I get away with Redploying the application each time I add a file ?

<h1 align="center">Weekly Search Extract</h1>
File dir = new File("/wls_domains/blwls001/config/blwls001/applications/BT_LOAD/extract/");

String[] children = dir.list();
if (children == null)
// Either dir does not exist or is not a directory
for (int i=0; i<children.length; i++)
// Get filename of file or directory
out.println("<LI><a href=http://launchpad.nat.bt.com:50350/BT_LOAD/extract/"+ children[i]+">"+ children[i]+"</LI>");

You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic