You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Benjamin Bratkus <br...@oio.de> on 2006/05/19 12:06:14 UTC

Absolute Path

Hello all,

i want to kow, if it's possible to get the absolute path of a faces app 
within the view i.e. http://localhost:8080/app/ or http://server/app/

best regards,

Ben

Re: Absolute Path

Posted by Mike Kienenberger <mk...@gmail.com>.
#{facesContext.externalContext.request...}

On 5/19/06, Cosma Colanicchia <co...@gmail.com> wrote:
> You should do this in your backing bean, see FacesContext on how
> obtain a reference to the HttpServletRequest object. Then you should
> be able to get the information you want from it.. getRequestURL is the
> method, if I remember well.
>
> Maybe you can access it from your page using EL, but I'm not sure.
>
> Cosma
>
>
> 2006/5/19, Benjamin Bratkus <br...@oio.de>:
> > Hello all,
> >
> > i want to kow, if it's possible to get the absolute path of a faces app
> > within the view i.e. http://localhost:8080/app/ or http://server/app/
> >
> > best regards,
> >
> > Ben
> >
>

Re: Absolute Path

Posted by Cosma Colanicchia <co...@gmail.com>.
You should do this in your backing bean, see FacesContext on how
obtain a reference to the HttpServletRequest object. Then you should
be able to get the information you want from it.. getRequestURL is the
method, if I remember well.

Maybe you can access it from your page using EL, but I'm not sure.

Cosma


2006/5/19, Benjamin Bratkus <br...@oio.de>:
> Hello all,
>
> i want to kow, if it's possible to get the absolute path of a faces app
> within the view i.e. http://localhost:8080/app/ or http://server/app/
>
> best regards,
>
> Ben
>