Ver Mensaje Individual
  #1 (permalink)  
Antiguo 19/07/2012, 08:39
sirdaiz
 
Fecha de Ingreso: diciembre-2010
Mensajes: 459
Antigüedad: 13 años, 4 meses
Puntos: 21
Struts <html:form>

Hola, tengo el sgte .jsp:

Código:
<html:form action="cuestionario.do" method="post">
<bean:write name="cuestion" property="pregunta"></bean:write><br>
<input type="text" name="respuesta" />
<html:submit value="Enviar"/>
</html:form>
Mi problema es que si pongo esta linea en ese .jsp:

<html:form action="cuestionario.do" method="post">

Me da el sgte error:
Código:
javax.servlet.ServletException: javax.servlet.jsp.JspException: Form bean not specified on mapping for action: "cuestionario.do"
javax.servlet.jsp.JspException: Form bean not specified on mapping for action: "cuestionario.do"
y en mi struts.congif.xml tengo:

Código:
 <action-mappings>
        <action path="/cuestionario" type="com.scor.actions.ComenzarEntrevista">
            <forward name="comenzar" path="/entrevista.jsp"/>
        </action>       
  </action-mappings>
Alguien sabe porque el error?

Saludos
__________________
Oye los consejos de todo el mundo, y sigue el tuyo.
Si te han ayudado deja un karma y si no te han ayudado pero vez util la información tb deja un karma xD
Sirdaiz