• url after login is in other database

    By Marc Jonkers 1 decade ago

    The url after login is on the same server and directory. Let's say it's test.nsf/test.xsp .

    I tried as login : facesContext.getExternalContext().getRequestContextPath()+ "//test.nsf/test.xsp"

    but this doesn't seem to work. What should this be ?

    • check your code

      By F. Kranenburg 1 decade ago

      That should work, but check your double/ inside your example code. If that doesn't work try to compute the full path including the domain. I had some issues about this too. 

      • How ?

        By Marc Jonkers 1 decade ago

        How do I calculate the full path including the domain ?

        • I use this

          By F. Kranenburg 1 decade ago

          For example:

          "https://" + facesContext.getExternalContext().getRequest().getHeader("Host") + "/test/test.xsp"