Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

searching a file in a directory  RSS feed

 
mou haj
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use an autoloaded servlet (< load-on-startup >1</ load-on-startup > ) that kicks off a TimerTask from the init() method.
- Peter
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!