Dalam servlet kamu coba overide method ini

public void init(ServletConfig config)  throws ServletException {
String path = config.getServletContext().getRealPath("/");
}


On Wed, 6 Oct 2004 10:28:36 +0700, Harry <[EMAIL PROTECTED]> wrote:
>
> Alow rekan2,
>
> Saya coba ambil pathnya gini nih..
>
> String path;
>
> File file = new File ("");
> path (file.getAbsolutePath());
>
> Itu keluarnya bukan tempat saya taruh file yg saya upload :
> C:/jakarta-tomcat-4.1.29/webapps/cimandebaru/upload/descriptor
>
> Tapi malah keluarnya C:/jakarta-tomcat-4.1.29/bin
>
> Mohon di bantu
> Terima kasih


Kalau mau keluar dari mailing list ini, caranya kirim sebuah email ke [EMAIL PROTECTED]

Jangan lupa, website JUG Indonesia adalah http://www.jug.or.id




Yahoo! Groups Sponsor
ADVERTISEMENT
click here
Web Bug from http://us.adserver.yahoo.com/l?M=298184.5285298.6392945.3001176/D=groups/S=:HM/A=2368837/rand=569186981


Yahoo! Groups Links

Reply via email to