私は最初の jsf2 プロジェクトを jboss7.1 で実行しようとしています。index.jsp から map.xhtml にリダイレクトしたいのですが、これは私の index.jsp で試してみましたが、すべてが機能しませんでした。助けてください
<%=response.sendRedirect("map.html") %>
<%=response.sendRedirect("/map.html") %>
<%=response.sendRedirect("map.xhtml") %>
<%=response.sendRedirect("/map.xhtml") %>
<%=response.sendRedirect("map.jsf") %>
<%=response.sendRedirect("/map.jsf") %>
これは私のfaces-config.xmlです
<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">
</faces-config>
これは私の web.xml です
<?xml version="1.0" encoding="UTF-8"?>
<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">
<display-name>myproject</display-name>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>