Reinhard Poetz wrote:

Where *exactly* do you want to put the file? Should it become part of the web application or is it located outside?


the file needs to be outside the .war and either relative to current.dir (from where the servlet runner got launched) or configurable from outside the sitemap.

right now I have a little servlet:
public class LittleServlet extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response)
           throws IOException, ServletException {
       response.setContentType("application/octet-stream");
       String path = System.getProperty("where");
       File f = new File(path);
       FileInputStream fin = new FileInputStream(f);
       // copy fin into response.getOutputStream();
       fin.close();

   }

}

which does the trick,
but I would like to to something similar using map:read

Romain.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to