Sivakumar Sankarasubramanian wrote:
>
> Hi ,
>
> This automatically saves the file/files in the default root directory.
> "." is the root and 5*1024*1024 indicates the max size of file.
>
I'm pressty new to JSP, but in servlets, I'd do exactly what you do in
your jsp code. To place the file in the directory you want to specify,
use File.renameTo() or use Runtime.getRuntime().exec() to use the os to
move the file.
I've seen that in some cases, for some reason File.renameTo() does not
always seem to work(security issue?).
sven
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets