i´m trying to make primefaces work, but I have a problem.
while acessing the .jsp page at:
http://localhost/Supervisorio_usuario/jsf/teste.jsp
i get the following error:
This is my web.xmlHTTP Status 405 - HTTP method GET is not supported by this URL
Code: Select all
<!-- configuração para o jsf/primefaces -->
<servlet>
<servlet-name>Resource Servlet</servlet-name>
<servlet-class>org.primefaces.resource.ResourceServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Resource Servlet</servlet-name>
<url-pattern>/jsf/*</url-pattern>
</servlet-mapping>
<context-param>
<param-name>com.sun.faces.allowTextChildren</param-name>
<param-value>true</param-value>
</context-param>
Code: Select all
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.prime.com.tr/ui">
<h:head>
... put your header info here
</h:head>
<h:body>
.. put your content here
<f:view>
<f:editor />
</f:view>
</h:body>
</html>
primefaces-2.2.1.jar
jsf-api-2.1.0.jar
jsf-impl-2.1.0.jar
using tomcat 6
thanks in advance