Uso do commandButton

2 respostas
Hell

Bom dia,

sou novo no GUJ e começando a trabalhar com java…

Queria saber se alguem pode me ajudar, quero que o action do commandButton redirecione pra uma pagina…

como faço isso?

vlw…

2 Respostas

L

Se for JSF, então vc usa navigation-rules

http://www.jsftutorials.net/jsf-navigation-by-examples.html

Hell

Blz…fiz, mas aparece esse erro!

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Faces context not found. getResponseWriter will fail. Check if the FacesServlet has been initialized at all in your web.xml configuration fileand if you are accessing your jsf-pages through the correct mapping. E.g.: if your FacesServlet is mapped to  *.jsf (with the -element), you need to access your pages as ‘sample.jsf’. If you tried to access ‘sample.jsp’, you’d get this error-message.

org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:460)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)

javax.servlet.http.HttpServlet.service(HttpServlet.java:729)

root cause

javax.faces.FacesException: Faces context not found. getResponseWriter will fail. Check if the FacesServlet has been initialized at all in your web.xml configuration fileand if you are accessing your jsf-pages through the correct mapping. E.g.: if your FacesServlet is mapped to  *.jsf (with the -element), you need to access your pages as ‘sample.jsf’. If you tried to access ‘sample.jsp’, you’d get this error-message.

javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.java:926)

javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:313)

org.apache.jsp.main_jsp._jspx_meth_h_005fform_005f0(main_jsp.java:113)

org.apache.jsp.main_jsp._jspService(main_jsp.java:76)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)

javax.servlet.http.HttpServlet.service(HttpServlet.java:729)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)

javax.servlet.http.HttpServlet.service(HttpServlet.java:729)

note The full stack trace of the root cause is available in the Apache Tomcat/5.5.27 logs.

O que deve ser??

vlw…

Criado 28 de abril de 2009
Ultima resposta 28 de abr. de 2009
Respostas 2
Participantes 2