Use something like Applicatiion.get().getServletContext().getRealPath(".");

Stefan

-----Ursprüngliche Nachricht-----
Von: Josh Kamau [mailto:[email protected]] 
Gesendet: Freitag, 31. Dezember 2010 09:12
An: [email protected]
Betreff: Getting the application path

Hi,

I am having a little headache here, How do i get the complete path of the 
application root from withing a wicket page.  i would like to get something 
like c:\tomcat\webapps\wicketapp\resources\file.pdf

Kind regards.
Josh.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to