> Is the source available for FileServlet? If it was I could pass it a
custom
> variable for the file I wanted.

In your case, you'll have to ask the live software^H^H^H^Hallaire folks.

> Otherwise, what are my options? (Besides writing my own FileServlet?) Can
I
> perform some tricky mapping or coding to get this working? Am I nuts? ;)

In your case, since you are doing all sorts of custom logic to find files
and such, you'd probably be off serving the file yourself. It's not that
hard to open up a FileInputStream and send the contents out the outputstream
with some code that looks like:

     byte[] buf = new byte[1024];
     int read = 0;

     while ((read = in.read(buf)) != -1)

         out.write(buf, 0, read);
     }

.duncan

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to