I am developing jsf project. I want to remove project name in URL . I want http://localhost:8080 instead of http://localhost:8080/simpleJSF1/. The problem is in my java code i have to write project name to redirect to another page Like this.
FacesContext.getCurrentInstance().getExternalContext().redirect("/simpleJSF1/login.xhtml");
If i somehow able to to remove project name from url then i can write like this
FacesContext.getCurrentInstance().getExternalContext().redirect("/login.xhtml");
instead of
FacesContext.getCurrentInstance().getExternalContext().redirect("/simpleJSF1/login.xhtml");
Any help would be appreciated. Thanks in advance.