You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Foo Shi Hao <ze...@doramail.com> on 2001/06/18 05:55:18 UTC

Getting file information

Greetings to all, newbie here.
Would like to ask if anyone knows how to get the file information such as the file name(not the entire path)
of the running JSP file?

Let's say i were to run confirmation.jsp, how do i get the filename to a string when confirmation.jsp is running?
I tried getRealpath and it returns the entire directory with the filename.Could i just get the filename instead?

Thanks, Zeon
-- 

Get your free email from www.doramail.com with 30 Megs of disk space in webhosting and e-mail storage!





Powered by Outblaze