2 Replies Latest reply on Jul 16, 2007 4:34 AM by Ever Last

    Redirection to a static URI

    Ever Last Newbie

      Hi i would like to redirect from my application to static content. but before I do this I need log some stuff so I call an action method and as a result of this action method the request should be redirected

      <s:link value="#{doc.title}" action="#{searcher.link(doc)}"/>
      


      facesContext.getExternalContext().redirect("http://www.google.com");
      

      how ever this upper example is working fine for http sites but not for local file system redirects

      facesContext.getExternalContext().redirect("file:/C:/temp/test.pdf");
      


      In the second case I dont get any errors but my site.xml gots redisplayed

      any hints?