Ver Mensaje Individual
  #6 (permalink)  
Antiguo 20/04/2012, 14:48
Avatar de gianfranc
gianfranc
 
Fecha de Ingreso: octubre-2011
Ubicación: san isidro-peru
Mensajes: 21
Antigüedad: 12 años, 6 meses
Puntos: 0
Respuesta: direccionar a Action en Struts

Cita:
Iniciado por Xerelo Ver Mensaje
¿Has mapeado los action? Da la impresión de que no tienes nada claro cómo funciona Struts.

[url]http://www.vaannila.com/struts/struts-example/struts-login-page-example-1.html[/url]
si los he mapeado
<form-beans>
<form-bean name="UsuarioActionForm" type="com.myapp.struts.UsuarioActionForm"/>
<form-bean name="AutoActionForm" type="com.myapp.struts.AutoActionForm"/>
</form-beans>


<action-mappings>
<action input="/jsp/AgregarAuto.jsp" name="AutoActionForm" path="/NuevoAuto" scope="request" type="Actions.AutoAction">
<forward name="mensaje" path="/jsp/mensaje.jsp" />
</action>




<action input="/jsp/MostrarAutos.jsp" name="AutoActionForm" path="/listaauto" scope="request" type="Actions.AutoAction">
<forward name="Lregistrados" path="/jsp/MostrarAutos.jsp"/>
</action>
</action-mappings>