Olá pessoal,
Segui todos os passos certinho do exercicio da pagina 234 da apostila fj-21 e estou tendo o erro:
org.apache.jasper.JasperException: An exception occurred processing JSP page /novo.jsp at line 7
4: <title>Sistema de Teste do Struts</title>
5: </head>
6: <html:errors />
7: <html:form action="/novoContato" focus="contato.nome">
8: Nome:
9: <html:text property="contato.nome" />
10: <br />
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:419)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause
java.lang.NullPointerException: Module 'null' not found.
org.apache.struts.taglib.TagUtils.getModuleConfig(TagUtils.java:755)
org.apache.struts.taglib.TagUtils.getModuleConfig(TagUtils.java:735)
org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:818)
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:488)
org.apache.jsp.novo_jsp._jspx_meth_html_005fform_005f0(novo_jsp.java:150)
org.apache.jsp.novo_jsp._jspx_meth_html_005fhtml_005f0(novo_jsp.java:104)
org.apache.jsp.novo_jsp._jspService(novo_jsp.java:71)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
Já nao sei mais o que fazer,
Segue os codigos:
<struts-config>
<form-beans>
<form-bean name="ContatoForm" type="br.com.caelum.struts.form.ContatoForm" />
</form-beans>
<action-mappings>
<action path="/pauno" type="br.com.caelum.struts.action.TesteSimplesAction">
<forward name="ok" path="/exemplo.jsp" />
</action>
<action path="/teste" type="br.com.caelum.struts.action.ListaContatosAction">
<forward name="listaFeliz" path="/listaContatoFeliz.jsp" />
<forward name="listaVazia" path="/lista-vazia.jsp" />
</action>
<action path="/novoContato" name="ContatoForm"
type="br.com.caelum.struts.action.AdicionaContatoAction">
<forward name="ok" path="/teste.cu"/>
</action>
</action-mappings>
</struts-config>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<html:html>
<head>
<title>Sistema de Teste do Struts</title>
</head>
<html:errors />
<html:form action="/novoContato" focus="contato.nome">
Nome:
<html:text property="contato.nome" />
<br />
Email:
<html:text property="contato.email" />
<br />
Endereço:
<html:text property="contato.endereco" />
<br />
<html:text property="contato.dataNascimento" />
<html:submit>Enviar dados</html:submit>
<br />
</html:form>
</html:html>
Porfavor galera.
Desde já agradeço