Lucas_Cavalcanti 11 de ago. de 2012
adicione o dispatcher de forward no filtro do sitemesh, e coloque a declaração do filtro do vraptor após a do sitemesh
edulemos 12 de ago. de 2012
Já Tentei desta forma, mas sem sucesso.
<?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> AssistenteGerencial</display-name>
<filter>
<filter-name> sitemesh</filter-name>
<filter-class> com.opensymphony.sitemesh.webapp.SiteMeshFilter</filter-class>
</filter>
<filter-mapping>
<filter-name> sitemesh</filter-name>
<url-pattern> /*</url-pattern>
<dispatcher> FORWARD</dispatcher>
</filter-mapping>
<welcome-file-list>
<welcome-file> index.jsp</welcome-file>
</welcome-file-list>
<filter>
<filter-name> vraptor</filter-name>
<filter-class> br.com.caelum.vraptor.VRaptor</filter-class>
</filter>
<filter-mapping>
<filter-name> vraptor</filter-name>
<url-pattern> /*</url-pattern>
<dispatcher> REQUEST</dispatcher>
<dispatcher> FORWARD</dispatcher>
</filter-mapping>
</web-app>
Lucas_Cavalcanti 13 de ago. de 2012
tenta colocar o dispatcher de REQUEST no sitemesh… se não funcionar, tenta trocar a ordem dos filtros
renatocustodio 24 de ago. de 2012
edulemos:
Já Tentei desta forma, mas sem sucesso.
<?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> AssistenteGerencial</display-name>
<filter>
<filter-name> sitemesh</filter-name>
<filter-class> com.opensymphony.sitemesh.webapp.SiteMeshFilter</filter-class>
</filter>
<filter-mapping>
<filter-name> sitemesh</filter-name>
<url-pattern> /*</url-pattern>
<dispatcher> FORWARD</dispatcher>
</filter-mapping>
<welcome-file-list>
<welcome-file> index.jsp</welcome-file>
</welcome-file-list>
<filter>
<filter-name> vraptor</filter-name>
<filter-class> br.com.caelum.vraptor.VRaptor</filter-class>
</filter>
<filter-mapping>
<filter-name> vraptor</filter-name>
<url-pattern> /*</url-pattern>
<dispatcher> REQUEST</dispatcher>
<dispatcher> FORWARD</dispatcher>
</filter-mapping>
</web-app>
O meu funciona assim:
<?xml version="1.0" encoding="UTF-8"?>
<web-app id= "WebApp_ID" version= "2.5" xmlns= "http://java.sun.com/xml/ns/javaee" xmlns:web= "http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" 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-app_2_5.xsd" >
<display-name> nome</display-name>
<context-param>
<param-name> br.com.caelum.vraptor.encoding</param-name>
<param-value> UTF-8</param-value>
</context-param>
<context-param>
<param-name> br.com.caelum.vraptor.provider</param-name>
<param-value> framework.CustomProvider</param-value>
</context-param>
<filter>
<filter-name> sitemesh</filter-name>
<filter-class> com.opensymphony.sitemesh.webapp.SiteMeshFilter</filter-class>
</filter>
<filter>
<filter-name> vraptor</filter-name>
<filter-class> br.com.caelum.vraptor.VRaptor</filter-class>
</filter>
<filter-mapping>
<filter-name> sitemesh</filter-name>
<url-pattern> /*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name> vraptor</filter-name>
<url-pattern> /*</url-pattern>
</filter-mapping>
</web-app>
Mas dessa forma ainda não funciona aquele esquema do results.on(ExeptionTal.class).
xdraculax 1 de jan. de 2013
Colocando o
REQUEST
No filtro do sitemesh funciona.