You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by LEUNG MING SUM <02...@stu.vtc.edu.hk> on 2005/02/17 08:52:50 UTC

How Can I browse the current directory?

Dear All,

How can I browse the current diectory?

I try to this to browse the current directory of my webpage 
getMethod(){

File obj = new File("");
return obj.getAbsolutePath();

}

But it return 
C:\\jakarta-tomcat-5.0.28\\bin

Not my expected value:
C:\\jakarta-tomcat-5.0.28\\webapps\\Tapestryweb\\

Thanks in advance,
Sam Leung


Disclaimer
**********************************************************************
This above message, including any attachment, may contain personal,
confidential and/or proprietary information, and is intended only for
the person(s) or entity/entities to whom it was originally addressed.
Moreover, Internet communications cannot be guaranteed to be
error-free.  Further transmission, dissemination or other use of, or
taking of any action in reliance upon, such information by anyone
other than the intended recipient(s) is prohibited and may contravene
local or international law.  All information and opinions given
therein are entirely those of the message sender(s) and are not
necessarily endorsed by the Vocational Training Council.
**********************************************************************