This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Servlets and the fly likes searching a file in a directory Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "searching a file in a directory" Watch "searching a file in a directory" New topic
Author

searching a file in a directory

mou haj
Ranch Hand

Joined: Sep 12, 2001
Posts: 81
can anybody tell me.... how can i search for a file in a directory ... what i need to do is thaty ill be expecting a file in a specified directory any time a day.. so i need to search for that file all the time as soon it comes ill have to capture it and send it over to some other place... how can i do it using jsp/servlets.please help
thanx
Moumita
Peter den Haan
author
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
Use an autoloaded servlet (< load-on-startup >1</ load-on-startup > ) that kicks off a TimerTask from the init() method.
- Peter
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: searching a file in a directory
 
Similar Threads
files in java
how can i do a text search in a directory of files
I have a question on User Interface!
File-Handling (???)
Look through files in a directory