Thanks James.

That worked.

On Fri, Dec 31, 2010 at 4:15 PM, James Carman <[email protected]>wrote:

> WebApplication
> On Dec 31, 2010 4:10 AM, "Josh Kamau" <[email protected]> wrote:
> > Thanks Stefan,
> >
> > Am trying but Application instance doesnt have getServletContext()
> >
> > am using wicket 1.4.14
> >
> > Josh
> >
> >
> > On Fri, Dec 31, 2010 at 12:00 PM, Stefan Lindner <[email protected]
> >wrote:
> >
> >> 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