Tema: Struts
Ver Mensaje Individual
  #3 (permalink)  
Antiguo 07/05/2009, 10:47
henry_fis
 
Fecha de Ingreso: mayo-2009
Mensajes: 2
Antigüedad: 15 años, 10 meses
Puntos: 0
Respuesta: Struts

en la pagina principal
******************
<html:html>
...
<body>
<div id="cabecera">
AQUI PONGO LOS ARCHIVOS DE CABECERA COMO MENU'S Y ALGUNOS TEXTOS...
</div>
<div id="cuerpo">
AQUI EL CODIGO INSERTADO POR EL AJAX
....
<html:form action="registro.do?action=registro">
DENTRO DE ESTE FRAGMENTO UTILIZO ENTRADAS PARA VALIDAR UN USUARIO DEL SISTEMA
....
<html:submit value="ingresar" />
</html:form>
....
</div>
</body>
</html:html>

pues bien tengo en el strus-config.xml
******************************
<struts-config>
<data-sources />
<form-beans >
<form-bean name = "registroForm" type = "aplicacion.form.RegistroForm" />
</form-beans>

<action-mappings>
<action path="/registro"
type="aplicacion.action.RegistroAction"
name="registroForm"
parameter="do"
scope="request"
input="/WEB-SOURCES/JSP/registro.jsp">
<forward name = "iniciar" path = "/WEB-SOURCES/JSP/acceso.jsp" />
</action>
</action-mappings>

<message-resources parameter="aplicacion.Mensajes"></message-resources>
</struts-config>

ps bien el detalle es que quiero que la pagina mensionada en el <forward> se incruste en la pagina principal, dentro del <div> identificado como "cuerpo", pero cuando presiono en el submit se carga unicamente la pagina acceso.jsp

Por favor una ayuda...