can you debug and see what this returns for both situations?

((WebRequest)RequestCycle.*get*().getRequest()).getHttpServletRequest()
.getRequestURL().toString()


On Sat, Jun 6, 2009 at 21:49, smallufo <small...@gmail.com> wrote:

> This is my code :
>
> String s1 =
> RequestUtils.toAbsolutePath(getRequestCycle().urlFor(CurrentPage.class ,
> pps).toString());
> System.out.println("s1 = " + s1);
>
> Link link = new AjaxFallbackLink("link")
> {
>  @Override
>  public void onClick(AjaxRequestTarget target)
>  {
>    final String s2 =
> RequestUtils.toAbsolutePath(getRequestCycle().urlFor(CurrentPage.class ,
> pps).toString());
>    System.out.println("s2 = " + s2);
>  }
> };
>
> This is the result :
>
> s1 = http://foo.bar:8080/app/CurrentPage
> s2 <http://foo.bar:8080/app/CurrentPages2> =
> CurrentPage/foo/bar/para/meters
>
> String s1 is what I need , it has "http://foo.bar:8080/app/"; in the head
> of
> the string.
> But why s2 don't have host and context name (app) in the head ?
> It is inconsistent ....
> Is it possible to make it consistent with s1 ?
>

Reply via email to