Discussions

EJB programming & troubleshooting: open/overwrite/delete a file from a jsp

  1. open/overwrite/delete a file from a jsp (2 messages)

    Hi mates!
    I need to write a jsp from read files (only files name) from local disk and put those into a listbox.
    After select one of those and open/overwrite/delete it.

    everybody can help me???

    thanks a lot

    Mic
  2. By 'local', do you mean on the client or the jsp server? If you mean the former, forget it, you can't do that. If you mean on the server, you can access files on the classpath as input streams using .class.getClass().getResourceAsStream
  3. Thanks a lot!!! i will try now!