title: Redirect from index.jsp welcome file to map.xhtml JSF page
body: <p>I am try to make a my first  jsf2 project run on jboss7.1 
  I want to redirect from the index.jsp to map.xhtml 
  that's what I try in my index.jsp and all of them didn't work please help</p>
  
  <pre><code>&lt;%=response.sendRedirect("map.html")  %&gt;
  &lt;%=response.sendRedirect("/map.html")  %&gt;
  &lt;%=response.sendRedirect("map.xhtml")  %&gt;
  &lt;%=response.sendRedirect("/map.xhtml")  %&gt;
  &lt;%=response.sendRedirect("map.jsf")  %&gt;
  &lt;%=response.sendRedirect("/map.jsf")  %&gt;
  </code></pre>
  
  <p>and this is my faces-config.xml</p>
  
     
  
  <pre><code>&lt;faces-config
  xmlns="http://java.sun.com/xml/ns/javaee"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns     /javaee   /web-facesconfig_2_1.xsd"
  version="2.1"&gt;
  
  &lt;/faces-config&gt;
  </code></pre>
  
  <p>this is my web.xml </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"     xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee    /web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com    /xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0"&gt;
    &lt;display-name&gt;myproject&lt;/display-name&gt;
    &lt;servlet&gt;
      &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
      &lt;servlet-class&gt;javax.faces.webapp.FacesServlet&lt;/servlet-class&gt;
      &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
    &lt;/servlet&gt;
    &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;*.jsf&lt;/url-pattern&gt;
    &lt;/servlet-mapping&gt;
    &lt;welcome-file-list&gt;
      &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;
    &lt;/welcome-file-list&gt;
  &lt;/web-app&gt;
  </code></pre>