Duvida simples struts

2 respostas
F

bom, meu jsp tem um form asssim:

<html:form action="InserirEvento.do">

e meu strutsconfigxml assim:

<form-beans>
  <form-bean name="InserirEventoForm" type="com.struts.InserirEventoForm"/>
 </form-beans>
<action-mappings>
  <action  name="InserirEventoForm"
   path="/InserirEvento" scope="request"
   type="com.struts.InserirEventoAction" validate="false">
   <forward name="DadosCadastrados" path="/dadosCadastrados.jsp"/>
  </action>
 </action-mappings>

pq da a msg:
javax.servlet.ServletException: Cannot retrieve mapping for action /InserirEvento

Obrigado!!!

2 Respostas

D

Verifique se não é isso:
não testei, acho que pode ser isso.

<form-beans> <form-bean name="InserirEventoForm" type="com.struts.InserirEventoForm"/> </form-beans> <action-mappings> <action name="InserirEvento" path="/InserirEvento" scope="request" type="com.struts.InserirEventoAction" validate="false"> <forward name="DadosCadastrados" path="/dadosCadastrados.jsp"/> </action> </action-mappings>

F

valeu. resolveu aqui

Criado 5 de julho de 2006
Ultima resposta 5 de jul. de 2006
Respostas 2
Participantes 2