From: "Daniel Völkerts" Date: 2004-09-14T01:54:55+09:00 Subject: Re: [webrick] How to extract filename from a request? James Britt wrote: Thanks for your reply. >> I mount my servlet to /filter and it should take any file argument in >> the url after /filter as a filename to a filter definition file e.g. >> http://localhost/filter/filter1.fd should render the output produced >> by filter one. > > > And it doesn't? > No, I'd like to pass the called file to the servlet which regonize the request... This is my flow Browser is pointed to http://localhost/filter/filter1.fd As my Servlet ist mounted to /filter he regonize the request and thats the part I'd like to implement -> now the servlet should look up the filter to use (here filter1.fd) and should parse this filter file for directives which controll the output. So I've to extract the filename from the request_uri. The way I went today is to call filterName = req.request_uri.to_s.scan(/\w+\.fd/) My question was if there is another possible better ruby way or variable included with webrick to accomplish this task. -- Daniel V�lkerts "Irren ist menschlich, und noch menschlicher ist es, einem Computer die Schuld zu geben." - U