CrazyFrogJava 1 de set. de 2009
Cara tem como colar o codigo ai pra gente ver o que você fez de errado e te ajuda! cola o código, o erro, tudo que possivel.
valeu!
pimentaft 1 de set. de 2009
To mandando um projeto que fiz para testar:
Pagina principal:
<% @taglib uri = "http://richfaces.org/a4j" prefix = "a4j" %>
<% @ page language = "java" contentType = "text/html; charset=ISO-8859-1" pageEncoding = "ISO-8859-1" %>
<% @ taglib prefix = "f" uri = "http://java.sun.com/jsf/core" %>
<% @ taglib prefix = "h" uri = "http://java.sun.com/jsf/html" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
< html >
< head >
< meta http-equiv = "Content-Type" content = "text/html; charset=ISO-8859-1" >
< title > Insert title here</ title >
</ head >
< body >
< f:view >
< table >
< tr >
< td > Menu< p >
< h:form >
< h:commandLink actionListener = "#{bMenu.carregaPagina}" immediate = "true" >
< f:param id = "ppagina" value = "cadproduto.jsp" />
</ h:commandLink >
</ h:form ></ td >
< td style = "width: 642px; height: 188px" >< a4j:include id = "centro" viewId = "#{bMenu.pagina}" ></ a4j:include ></ td >
</ tr >
</ table >
</ f:view >
</ body >
</ html >
Pagina a ser chamada:
<% @taglib uri = "http://richfaces.org/rich" prefix = "rich" %><% @ page language = "java" contentType = "text/html; charset=ISO-8859-1" pageEncoding = "ISO-8859-1" %>
<% @ taglib prefix = "f" uri = "http://java.sun.com/jsf/core" %>
<% @ taglib prefix = "h" uri = "http://java.sun.com/jsf/html" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
< html >
< head >
< meta http-equiv = "Content-Type" content = "text/html; charset=ISO-8859-1" >
< title > Cadastro de Produtos</ title >
</ head >
< body >
< f:subview id = "produto" >
< h:form >
Descrição:< h:inputText value = "#{bProduto.produto.descricao}" ></ h:inputText >
< br >
< h:commandButton action = "#{bProduto.salvarProduto}" value = "Salvar" ></ h:commandButton >
< br >
< h:commandLink value = "Buscar" action = "#{bProduto.imprimeProduto}" />
</ h:form ></ f:subview >
</ body >
</ html >
O bean:
public class MenuBean {
private String pagina ;
public String getPagina () {
return pagina ;
}
public void setPagina ( String pagina ) {
this . pagina = pagina ;
}
public void carregaPagina ( ActionEvent event ){
FacesContext fc = FacesContext . getCurrentInstance ();
UIParameter parametroPagina = ( UIParameter ) event . getComponent (). findComponent ( "ppagina" );
pagina = parametroPagina . getValue (). toString ();
}
}
Faces-config
<?xml version="1.0" encoding="UTF-8"?>
<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_1_2.xsd"
version= "1.2" >
<managed-bean>
<description> Bean de Produto</description>
<managed-bean-name> bProduto</managed-bean-name>
<managed-bean-class> bean.ProdutoBean</managed-bean-class>
<managed-bean-scope> request</managed-bean-scope>
</managed-bean>
<managed-bean>
<description> Bean de Menu</description>
<managed-bean-name> bMenu</managed-bean-name>
<managed-bean-class> bean.MenuBean</managed-bean-class>
<managed-bean-scope> request</managed-bean-scope>
</managed-bean>
<navigation-rule>
<from-view-id> /cadproduto.jsp</from-view-id>
<navigation-case>
<from-action> #{bProduto.salvarProduto}</from-action>
<from-outcome> sucesso</from-outcome>
<to-view-id> /sucesso.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-action> #{bProduto.salvarProduto}</from-action>
<from-outcome> falha</from-outcome>
<to-view-id> /erro.jsp</to-view-id>
</navigation-case>
</navigation-rule>
</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_2_5.xsd" version= "2.5" >
<display-name> SCIF</display-name>
<context-param>
<param-name> org.richfaces.SKIN</param-name>
<param-value> classic</param-value>
</context-param>
<context-param>
<param-name> javax.faces.STATE_SAVING_METHOD</param-name>
<param-value> client</param-value>
</context-param>
<context-param>
<param-name> javax.faces.CONFIG_FILES</param-name>
<param-value> /WEB-INF/faces-config.xml</param-value>
</context-param>
<context-param>
<param-name> com.sun.faces.externalizeJavaScript</param-name>
<param-value> true</param-value>
</context-param>
<filter>
<display-name> RichFaces Filter</display-name>
<filter-name> richfaces</filter-name>
<filter-class> org.ajax4jsf.Filter</filter-class>
</filter>
<filter-mapping>
<filter-name> richfaces</filter-name>
<servlet-name> Faces Servlet</servlet-name>
<dispatcher> REQUEST</dispatcher>
<dispatcher> FORWARD</dispatcher>
<dispatcher> INCLUDE</dispatcher>
</filter-mapping>
<listener>
<listener-class> com.sun.faces.config.ConfigureListener</listener-class>
</listener>
<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> *.faces</url-pattern>
</servlet-mapping>
</web-app>
O erro é:
SEVERE : Servlet . service () for servlet jsp threw exception
java . lang . NullPointerException : FacesContext is null
at org . ajax4jsf . context . AjaxContext . getCurrentInstance ( AjaxContext . java : 159 )
at org . ajax4jsf . context . AjaxContext . getCurrentInstance ( AjaxContext . java : 144 )
at org . ajax4jsf . component . AjaxViewRoot . getViewId ( AjaxViewRoot . java : 580 )
at com . sun . faces . lifecycle . Phase . doPhase ( Phase . java : 104 )
at com . sun . faces . lifecycle . LifecycleImpl . render ( LifecycleImpl . java : 139 )
at javax . faces . webapp . FacesServlet . service ( FacesServlet . java : 266 )
at org . apache . catalina . core . ApplicationFilterChain . internalDoFilter ( ApplicationFilterChain . java : 290 )
at org . apache . catalina . core . ApplicationFilterChain . doFilter ( ApplicationFilterChain . java : 206 )
at org . ajax4jsf . webapp . BaseFilter . doFilter ( BaseFilter . java : 510 )
at org . apache . catalina . core . ApplicationFilterChain . internalDoFilter ( ApplicationFilterChain . java : 235 )
at org . apache . catalina . core . ApplicationFilterChain . doFilter ( ApplicationFilterChain . java : 206 )
at org . apache . catalina . core . ApplicationDispatcher . invoke ( ApplicationDispatcher . java : 646 )
at org . apache . catalina . core . ApplicationDispatcher . processRequest ( ApplicationDispatcher . java : 436 )
at org . apache . catalina . core . ApplicationDispatcher . doForward ( ApplicationDispatcher . java : 374 )
at org . apache . catalina . core . ApplicationDispatcher . forward ( ApplicationDispatcher . java : 302 )
at org . apache . jasper . runtime . PageContextImpl . doForward ( PageContextImpl . java : 706 )
at org . apache . jasper . runtime . PageContextImpl . forward ( PageContextImpl . java : 677 )
at org . apache . jsp . index_jsp . _jspService ( index_jsp . java : 62 )
at org . apache . jasper . runtime . HttpJspBase . service ( HttpJspBase . java : 70 )
at javax . servlet . http . HttpServlet . service ( HttpServlet . java : 717 )
at org . apache . jasper . servlet . JspServletWrapper . service ( JspServletWrapper . java : 374 )
at org . apache . jasper . servlet . JspServlet . serviceJspFile ( JspServlet . java : 342 )
at org . apache . jasper . servlet . JspServlet . service ( JspServlet . java : 267 )
at javax . servlet . http . HttpServlet . service ( HttpServlet . java : 717 )
at org . apache . catalina . core . ApplicationFilterChain . internalDoFilter ( ApplicationFilterChain . java : 290 )
at org . apache . catalina . core . ApplicationFilterChain . doFilter ( ApplicationFilterChain . java : 206 )
at org . apache . catalina . core . ApplicationDispatcher . invoke ( ApplicationDispatcher . java : 646 )
at org . apache . catalina . core . ApplicationDispatcher . doInclude ( ApplicationDispatcher . java : 551 )
at org . apache . catalina . core . ApplicationDispatcher . include ( ApplicationDispatcher . java : 488 )
at org . ajax4jsf . taglib . html . jsp . IncludeTag . doStartTag ( IncludeTag . java : 234 )
at org . apache . jsp . principal_jsp . _jspx_meth_a4j_005finclude_005f0 ( principal_jsp . java : 277 )
at org . apache . jsp . principal_jsp . _jspx_meth_f_005fview_005f0 ( principal_jsp . java : 124 )
at org . apache . jsp . principal_jsp . _jspService ( principal_jsp . java : 80 )
at org . apache . jasper . runtime . HttpJspBase . service ( HttpJspBase . java : 70 )
at javax . servlet . http . HttpServlet . service ( HttpServlet . java : 717 )
at org . apache . jasper . servlet . JspServletWrapper . service ( JspServletWrapper . java : 374 )
at org . apache . jasper . servlet . JspServlet . serviceJspFile ( JspServlet . java : 342 )
at org . apache . jasper . servlet . JspServlet . service ( JspServlet . java : 267 )
at javax . servlet . http . HttpServlet . service ( HttpServlet . java : 717 )
at org . apache . catalina . core . ApplicationFilterChain . internalDoFilter ( ApplicationFilterChain . java : 290 )
at org . apache . catalina . core . ApplicationFilterChain . doFilter ( ApplicationFilterChain . java : 206 )
at org . apache . catalina . core . ApplicationDispatcher . invoke ( ApplicationDispatcher . java : 646 )
at org . apache . catalina . core . ApplicationDispatcher . processRequest ( ApplicationDispatcher . java : 436 )
at org . apache . catalina . core . ApplicationDispatcher . doForward ( ApplicationDispatcher . java : 374 )
at org . apache . catalina . core . ApplicationDispatcher . forward ( ApplicationDispatcher . java : 302 )
at com . sun . faces . context . ExternalContextImpl . dispatch ( ExternalContextImpl . java : 410 )
at com . sun . faces . application . ViewHandlerImpl . executePageToBuildView ( ViewHandlerImpl . java : 468 )
at com . sun . faces . application . ViewHandlerImpl . renderView ( ViewHandlerImpl . java : 140 )
at org . ajax4jsf . application . ViewHandlerWrapper . renderView ( ViewHandlerWrapper . java : 100 )
at org . ajax4jsf . application . AjaxViewHandler . renderView ( AjaxViewHandler . java : 176 )
at com . sun . faces . lifecycle . RenderResponsePhase . execute ( RenderResponsePhase . java : 110 )
at com . sun . faces . lifecycle . Phase . doPhase ( Phase . java : 100 )
at com . sun . faces . lifecycle . LifecycleImpl . render ( LifecycleImpl . java : 139 )
at javax . faces . webapp . FacesServlet . service ( FacesServlet . java : 266 )
at org . apache . catalina . core . ApplicationFilterChain . internalDoFilter ( ApplicationFilterChain . java : 290 )
at org . apache . catalina . core . ApplicationFilterChain . doFilter ( ApplicationFilterChain . java : 206 )
at org . ajax4jsf . webapp . BaseFilter . doFilter ( BaseFilter . java : 510 )
at org . apache . catalina . core . ApplicationFilterChain . internalDoFilter ( ApplicationFilterChain . java : 235 )
at org . apache . catalina . core . ApplicationFilterChain . doFilter ( ApplicationFilterChain . java : 206 )
at org . apache . catalina . core . ApplicationDispatcher . invoke ( ApplicationDispatcher . java : 646 )
at org . apache . catalina . core . ApplicationDispatcher . processRequest ( ApplicationDispatcher . java : 436 )
at org . apache . catalina . core . ApplicationDispatcher . doForward ( ApplicationDispatcher . java : 374 )
at org . apache . catalina . core . ApplicationDispatcher . forward ( ApplicationDispatcher . java : 302 )
at org . apache . jasper . runtime . PageContextImpl . doForward ( PageContextImpl . java : 706 )
at org . apache . jasper . runtime . PageContextImpl . forward ( PageContextImpl . java : 677 )
at org . apache . jsp . index_jsp . _jspService ( index_jsp . java : 62 )
at org . apache . jasper . runtime . HttpJspBase . service ( HttpJspBase . java : 70 )
at javax . servlet . http . HttpServlet . service ( HttpServlet . java : 717 )
at org . apache . jasper . servlet . JspServletWrapper . service ( JspServletWrapper . java : 374 )
at org . apache . jasper . servlet . JspServlet . serviceJspFile ( JspServlet . java : 342 )
at org . apache . jasper . servlet . JspServlet . service ( JspServlet . java : 267 )
at javax . servlet . http . HttpServlet . service ( HttpServlet . java : 717 )
at org . apache . catalina . core . ApplicationFilterChain . internalDoFilter ( ApplicationFilterChain . java : 290 )
at org . apache . catalina . core . ApplicationFilterChain . doFilter ( ApplicationFilterChain . java : 206 )
at org . apache . catalina . core . ApplicationDispatcher . invoke ( ApplicationDispatcher . java : 646 )
at org . apache . catalina . core . ApplicationDispatcher . doInclude ( ApplicationDispatcher . java : 551 )
at org . apache . catalina . core . ApplicationDispatcher . include ( ApplicationDispatcher . java : 488 )
at org . ajax4jsf . taglib . html . jsp . IncludeTag . doStartTag ( IncludeTag . java : 234 )
at org . apache . jsp . principal_jsp . _jspx_meth_a4j_005finclude_005f0 ( principal_jsp . java : 277 )
at org . apache . jsp . principal_jsp . _jspx_meth_f_005fview_005f0 ( principal_jsp . java : 124 )
at org . apache . jsp . principal_jsp . _jspService ( principal_jsp . java : 80 )
at org . apache . jasper . runtime . HttpJspBase . service ( HttpJspBase . java : 70 )
at javax . servlet . http . HttpServlet . service ( HttpServlet . java : 717 )
at org . apache . jasper . servlet . JspServletWrapper . service ( JspServletWrapper . java : 374 )
at org . apache . jasper . servlet . JspServlet . serviceJspFile ( JspServlet . java : 342 )
at org . apache . jasper . servlet . JspServlet . service ( JspServlet . java : 267 )
at javax . servlet . http . HttpServlet . service ( HttpServlet . java : 717 )
at org . apache . catalina . core . ApplicationFilterChain . internalDoFilter ( ApplicationFilterChain . java : 290 )
at org . apache . catalina . core . ApplicationFilterChain . doFilter ( ApplicationFilterChain . java : 206 )
at org . apache . catalina . core . ApplicationDispatcher . invoke ( ApplicationDispatcher . java : 646 )
at org . apache . catalina . core . ApplicationDispatcher . processRequest ( ApplicationDispatcher . java : 436 )
at org . apache . catalina . core . ApplicationDispatcher . doForward ( ApplicationDispatcher . java : 374 )
at org . apache . catalina . core . ApplicationDispatcher . forward ( ApplicationDispatcher . java : 302 )
at com . sun . faces . context . ExternalContextImpl . dispatch ( ExternalContextImpl . java : 410 )
at com . sun . faces . application . ViewHandlerImpl . executePageToBuildView ( ViewHandlerImpl . java : 468 )
at com . sun . faces . application . ViewHandlerImpl . renderView ( ViewHandlerImpl . java : 140 )
at org . ajax4jsf . application . ViewHandlerWrapper . renderView ( ViewHandlerWrapper . java : 100 )
at org . ajax4jsf . application . AjaxViewHandler . renderView ( AjaxViewHandler . java : 176 )
at com . sun . faces . lifecycle . RenderResponsePhase . execute ( RenderResponsePhase . java : 110 )
at com . sun . faces . lifecycle . Phase . doPhase ( Phase . java : 100 )
at com . sun . faces . lifecycle . LifecycleImpl . render ( LifecycleImpl . java : 139 )
at javax . faces . webapp . FacesServlet . service ( FacesServlet . java : 266 )
at org . apache . catalina . core . ApplicationFilterChain . internalDoFilter ( ApplicationFilterChain . java : 290 )
at org . apache . catalina . core . ApplicationFilterChain . doFilter ( ApplicationFilterChain . java : 206 )
at org . ajax4jsf . webapp . BaseFilter . doFilter ( BaseFilter . java : 510 )
at org . apache . catalina . core . ApplicationFilterChain . internalDoFilter ( ApplicationFilterChain . java : 235 )
at org . apache . catalina . core . ApplicationFilterChain . doFilter ( ApplicationFilterChain . java : 206 )
at org . apache . catalina . core . ApplicationDispatcher . invoke ( ApplicationDispatcher . java : 646 )
at org . apache . catalina . core . ApplicationDispatcher . processRequest ( ApplicationDispatcher . java : 436 )
at org . apache . catalina . core . ApplicationDispatcher . doForward ( ApplicationDispatcher . java : 374 )
at org . apache . catalina . core . ApplicationDispatcher . forward ( ApplicationDispatcher . java : 302 )
at org . apache . jasper . runtime . PageContextImpl . doForward ( PageContextImpl . java : 706 )
at org . apache . jasper . runtime . PageContextImpl . forward ( PageContextImpl . java : 677 )
at org . apache . jsp . index_jsp . _jspService ( index_jsp . java : 62 )
at org . apache . jasper . runtime . HttpJspBase . service ( HttpJspBase . java : 70 )
at javax . servlet . http . HttpServlet . service ( HttpServlet . java : 717 )
at org . apache . jasper . servlet . JspServletWrapper . service ( JspServletWrapper . java : 374 )
at org . apache . jasper . servlet . JspServlet . serviceJspFile ( JspServlet . java : 342 )
at org . apache . jasper . servlet . JspServlet . service ( JspServlet . java : 267 )
at javax . servlet . http . HttpServlet . service ( HttpServlet . java : 717 )
at org . apache . catalina . core . ApplicationFilterChain . internalDoFilter ( ApplicationFilterChain . java : 290 )
at org . apache . catalina . core . ApplicationFilterChain . doFilter ( ApplicationFilterChain . java : 206 )
at org . apache . catalina . core . ApplicationDispatcher . invoke ( ApplicationDispatcher . java : 646 )
at org . apache . catalina . core . ApplicationDispatcher . doInclude ( ApplicationDispatcher . java : 551 )
at org . apache . catalina . core . ApplicationDispatcher . include ( ApplicationDispatcher . java : 488 )
at org . ajax4jsf . taglib . html . jsp . IncludeTag . doStartTag ( IncludeTag . java : 234 )
at org . apache . jsp . principal_jsp . _jspx_meth_a4j_005finclude_005f0 ( principal_jsp . java : 277 )
at org . apache . jsp . principal_jsp . _jspx_meth_f_005fview_005f0 ( principal_jsp . java : 124 )
at org . apache . jsp . principal_jsp . _jspService ( principal_jsp . java : 80 )
at org . apache . jasper . runtime . HttpJspBase . service ( HttpJspBase . java : 70 )
at javax . servlet . http . HttpServlet . service ( HttpServlet . java : 717 )
at org . apache . jasper . servlet . JspServletWrapper . service ( JspServletWrapper . java : 374 )
at org . apache . jasper . servlet . JspServlet . serviceJspFile ( JspServlet . java : 342 )
at org . apache . jasper . servlet . JspServlet . service ( JspServlet . java : 267 )
at javax . servlet . http . HttpServlet . service ( HttpServlet . java : 717 )
at org . apache . catalina . core . ApplicationFilterChain . internalDoFilter ( ApplicationFilterChain . java : 290 )
at org . apache . catalina . core . ApplicationFilterChain . doFilter ( ApplicationFilterChain . java : 206 )
at org . apache . catalina . core . ApplicationDispatcher . invoke ( ApplicationDispatcher . java : 646 )
at org . apache . catalina . core . ApplicationDispatcher . processRequest ( ApplicationDispatcher . java : 436 )
at org . apache . catalina . core . ApplicationDispatcher . doForward ( ApplicationDispatcher . java : 374 )
at org . apache . catalina . core . ApplicationDispatcher . forward ( ApplicationDispatcher . java : 302 )
at com . sun . faces . context . ExternalContextImpl . dispatch ( ExternalContextImpl . java : 410 )
at com . sun . faces . application . ViewHandlerImpl . executePageToBuildView ( ViewHandlerImpl . java : 468 )
at com . sun . faces . application . ViewHandlerImpl . renderView ( ViewHandlerImpl . java : 140 )
at org . ajax4jsf . application . ViewHandlerWrapper . renderView ( ViewHandlerWrapper . java : 100 )
at org . ajax4jsf . application . AjaxViewHandler . renderView ( AjaxViewHandler . java : 176 )
at com . sun . faces . lifecycle . RenderResponsePhase . execute ( RenderResponsePhase . java : 110 )
at com . sun . faces . lifecycle . Phase . doPhase ( Phase . java : 100 )
at com . sun . faces . lifecycle . LifecycleImpl . render ( LifecycleImpl . java : 139 )
at javax . faces . webapp . FacesServlet . service ( FacesServlet . java : 266 )
at org . apache . catalina . core . ApplicationFilterChain . internalDoFilter ( ApplicationFilterChain . java : 290 )
at org . apache . catalina . core . ApplicationFilterChain . doFilter ( ApplicationFilterChain . java : 206 )
at org . ajax4jsf . webapp . BaseXMLFilter . doXmlFilter ( BaseXMLFilter . java : 178 )
at org . ajax4jsf . webapp . BaseFilter . handleRequest ( BaseFilter . java : 290 )
at org . ajax4jsf . webapp . BaseFilter . processUploadsAndHandleRequest ( BaseFilter . java : 368 )
at org . ajax4jsf . webapp . BaseFilter . doFilter ( BaseFilter . java : 495 )
at org . apache . catalina . core . ApplicationFilterChain . internalDoFilter ( ApplicationFilterChain . java : 235 )
at org . apache . catalina . core . ApplicationFilterChain . doFilter ( ApplicationFilterChain . java : 206 )
at org . apache . catalina . core . ApplicationDispatcher . invoke ( ApplicationDispatcher . java : 646 )
at org . apache . catalina . core . ApplicationDispatcher . processRequest ( ApplicationDispatcher . java : 436 )
at org . apache . catalina . core . ApplicationDispatcher . doForward ( ApplicationDispatcher . java : 374 )
at org . apache . catalina . core . ApplicationDispatcher . forward ( ApplicationDispatcher . java : 302 )
at org . apache . jasper . runtime . PageContextImpl . doForward ( PageContextImpl . java : 706 )
at org . apache . jasper . runtime . PageContextImpl . forward ( PageContextImpl . java : 677 )
at org . apache . jsp . index_jsp . _jspService ( index_jsp . java : 62 )
at org . apache . jasper . runtime . HttpJspBase . service ( HttpJspBase . java : 70 )
at javax . servlet . http . HttpServlet . service ( HttpServlet . java : 717 )
at org . apache . jasper . servlet . JspServletWrapper . service ( JspServletWrapper . java : 374 )
at org . apache . jasper . servlet . JspServlet . serviceJspFile ( JspServlet . java : 342 )
at org . apache . jasper . servlet . JspServlet . service ( JspServlet . java : 267 )
at javax . servlet . http . HttpServlet . service ( HttpServlet . java : 717 )
at org . apache . catalina . core . ApplicationFilterChain . internalDoFilter ( ApplicationFilterChain . java : 290 )
at org . apache . catalina . core . ApplicationFilterChain . doFilter ( ApplicationFilterChain . java : 206 )
at org . apache . catalina . core . StandardWrapperValve . invoke ( StandardWrapperValve . java : 233 )
at org . apache . catalina . core . StandardContextValve . invoke ( StandardContextValve . java : 191 )
at org . apache . catalina . core . StandardHostValve . invoke ( StandardHostValve . java : 128 )
at org . apache . catalina . valves . ErrorReportValve . invoke ( ErrorReportValve . java : 102 )
at org . apache . catalina . core . StandardEngineValve . invoke ( StandardEngineValve . java : 109 )
at org . apache . catalina . connector . CoyoteAdapter . service ( CoyoteAdapter . java : 293 )
at org . apache . coyote . http11 . Http11Processor . process ( Http11Processor . java : 849 )
at org . apache . coyote . http11 . Http11Protocol $ Http11ConnectionHandler . process ( Http11Protocol . java : 583 )
at org . apache . tomcat . util . net . JIoEndpoint $ Worker . run ( JIoEndpoint . java : 454 )
at java . lang . Thread . run ( Unknown Source )
01 / 09 / 2009 11 : 26 : 39 org . apache . catalina . core . ApplicationDispatcher invoke
E esse erro se repete mais umas 6x…
pimentaft 1 de set. de 2009
Mal acabei de postar e resolvi…
Foi resolvido com a inicialização do atributo no bean com uma pagina default:
private String pagina = "branco.jsp" ;
Vlwz!!!
CrazyFrogJava 1 de set. de 2009
Realmente pimenta em seu jsp vc estava chamando uma ação pagina que não tinha nenhum valor.
resolveu totalmente seu problema?!
qualquer coisa posta ai novamente!
pimentaft 1 de set. de 2009
A principio resolvei sim, foi uma maneira que achei de usar o include em um menu grande. Não sei se é o mais viavel.
Eu criei um jsp vazio para inicializar a pagina no bean.Em cada menu eu coloquei um parametro.
O erro é porque o include nao inicializava com nada.
Obrigado pela moral!