con este llamarasincrono logro cargar una pagina desde una una pagina que ya se encuentra cargado en el div
aca pego el codigo de ModificarBoard.jsp
Código:
<%@ page contentType="text/html; charset=ISO-8859-1" language="java" import="java.sql.*" errorPage="" %>
<%@page pageEncoding="UTF-8"%>
<%--
Document : ModificarBoard
Author : Wilson Esteban Velez Morales
--%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<jsp:useBean id = "mensaje" class = "java.lang.String" scope="request"/>
<jsp:useBean id = "mensaje2" class = "java.lang.String" scope="request"/>
<jsp:useBean id = "datosU" class = "java.util.Vector" scope="request"/>
<jsp:useBean id = "auxiliar" class = "java.lang.String" scope="request"/>
<jsp:useBean id = "variable0" class = "java.lang.String" scope="request"/>
<jsp:useBean id = "variable" class = "java.lang.String" scope="request"/>
<jsp:useBean id = "variable1" class = "java.lang.String" scope="request"/>
<jsp:useBean id = "variable2" class = "java.lang.String" scope="request"/>
<jsp:useBean id = "variable3" class = "java.lang.String" scope="request"/>
<jsp:useBean id = "variable4" class = "java.lang.String" scope="request"/>
<jsp:useBean id = "variable5" class = "java.lang.String" scope="request"/>
<jsp:useBean id = "codigo" class = "java.lang.String" scope="request"/>
<jsp:useBean id = "marcaN" class = "java.lang.String" scope="request"/>
<jsp:useBean id = "marca" class = "java.lang.String" scope="request"/>
<jsp:useBean id = "capacidad" class = "java.lang.String" scope="request"/>
<jsp:useBean id = "serial" class = "java.lang.String" scope="request"/>
<jsp:useBean id = "modelo" class = "java.lang.String" scope="request"/>
<jsp:useBean id = "estado" class = "java.lang.String" scope="request"/>
<script language="JavaScript" type="text/javascript" src="js/interno.js"></script>
<html>
<head>
<title>SITC - MODIFICAR BOARD</title>
</head>
<body>
<table width="43%" height="59%" border="0" align="center" bordercolor="#CCCCCC">
<tr bgcolor="#336699">
<td height="26">
<div align="center"><font color="#FFFFFF" face="Geneva, Arial, Helvetica, sans-serif"><em><strong>MODIFICAR
BOARD</strong></em></font></div></td>
</tr><%
if (datosU.size() > 1) {
if (datosU.get(0).toString().equals("true")) {
System.out.println("hasta aca todo bien");
variable0 = datosU.get(1).toString();
variable = datosU.get(2).toString();
variable1 = datosU.get(3).toString();
variable2 = datosU.get(4).toString();
variable3 = datosU.get(5).toString();
variable4 = datosU.get(6).toString();
System.out.println("salio todo bien");
System.out.println("Si ingresa al true");
auxiliar = "true";
datosU.clear();
System.out.println("Si ingresa ");
}
}
%>
<tr>
<td height="212" valign="top" bgcolor="#F4F4F4" >
<p>
</p>
<table width="90%" height="183" border="0" align="center" bordercolor="#0099FF">
<tr> <form name="ModificarParlante" method="POST" id ="form1" action="javascript:llamarasincronoInterno('ControladorServlet','contenidos','form1')">
<td width="93%" height="179" align="center" valign="top">
<table width="100%" height="31%" border="0" align="center" >
<tr>
<td height="26" align="left"> <p align="right"><font color="#000066" size="-1">CODIGO</font></p></td>
<td height="26" align="left"> <div align="left"><font color="#000000">
<input name="codigo" type="text" id="codigo" size="50" disabled="disabled" onBlur="this.value = this.value.toUpperCase()" value="<%= (auxiliar != null) ? (codigo = variable0) : ""%>" <%= (auxiliar == null) ? "" : "disabled"%>>
</font></div></td>
</tr>
<tr>
<td width="35%" height="26" align="left"> <div align="right"><font color="#000066" size="-1">MARCA</font></div></td>
<td width="65%" height="26" align="left"> <div align="left">
<font color="#000000">
<input name="marcaN" size="50" type="text" id="marcaN3" disabled="disabled" onBlur="this.value = this.value.toUpperCase()" value="<%= (auxiliar != null) ? (marcaN = variable1) : ""%>" <%= (auxiliar == null) ? "" : "disabled"%>>
</font> <font color="#000000"> </font></div></td>
<%System.out.println("Si ingresa3 ");%>
</tr>
<tr>
<td height="26" align="left"> <div align="right"><font color="#000066" size="-1">MODELO</font></div></td>
<td height="26" align="left"> <div align="left"> <font color="#000000">
<input name="modelo" size="50" type="text" id="modelo" onBlur="this.value = this.value.toUpperCase()" value="<%= (auxiliar != null) ? (modelo = variable2) : ""%>" >
</font></div></td>
</tr>
<tr>
<td height="26" align="left"> <div align="right"><font color="#000066" size="-1">SERIAL</font></div></td>
<td height="26" align="left"> <div align="left"> <font color="#000000">
<input name="serial" size="50" type="text" id="serial" onBlur="this.value = this.value.toUpperCase()" value="<%= (auxiliar != null) ? (serial = variable3) : ""%>" >
</font></div></td>
</tr>
<tr>
<td height="26" align="left"> <div align="right"><font color="#000066" size="-1">ESTADO</font></div></td>
<td height="26" align="left"> <div align="left"> <font color="#000000">
<select name="estado" id="estado">
<option value="<%= variable4%>"><%= (estado = variable4) %></option>
<option value="EN BUEN ESTADO">EN BUEN ESTADO</option>
<option value="EN MANTENIMIENTO">EN MANTENIMIENTO</option>
<option value="DAÑADO">DAÑADO</option>
</select>
</font></div></td>
</tr>
<input name="marca" type="hidden" value="<%= (marca = variable)%>">
</table>
<p align="center">
<input type="submit" name="Submit" value="INGRESAR" >
</p>
</td> <input type="hidden" name="action" value="ValidarBO">
<input type="hidden" name="pagina" value="ModificarBoard">
<input type="hidden" name="codigo" value="<%= codigo%>">
<input type="hidden" name="marcaN" value="<%= marcaN%>">
<input type= "hidden" name="objeto" value="Board"></form>
<td width="7%" valign="top"> <table width="74%" border="0" cellpadding="1">
<tr>
<form name="DatosTeclado" method="POST" id ="form2" action="javascript:llamarasincronoInterno('ControladorServlet','contenidos','form2')">
<td height="26" align="left" valign="top"> <p>
<input type="submit" name="Submit2" value=" ... " >
</p></td>
<input type="hidden" name="action" value="DatosBoard">
<input type="hidden" name="pagina" value="ModificarBoard">
<input type= "hidden" name="objeto" value="Board">
</form>
</tr>
<tr>
<form name="form3" method="post" id ="form3" action="javascript:llamarasincronoInterno('ControladorServlet','contenidos','form3')">
<td height="26" align="left" valign="top"> <input type="submit" name="Submit3" value=" ... ">
</td>
<input type="hidden" name="pagina" value="ModificarBoard">
<input type="hidden" name="action" value="DatosMarca">
<input type="hidden" name="tabla" value="MARCA_BOARD">
<input type="hidden" name="codigo" value="<%= codigo%>">
<input type="hidden" name="marcaN" value="<%= marcaN%>">
<input type="hidden" name="marca" value="<%= marca%>">
<input type="hidden" name="modelo" value="<%= modelo%>">
<input type="hidden" name="serial" value="<%=serial%>">
<input type="hidden" name="estado" value="<%=estado%>">
<input type= "hidden" name="objeto" value="Board">
</form>
</tr>
</table>
<p> </p></td>
</tr>
</table>
<div align="center"><font color="#ff0000" size="3">
<% if (mensaje2.equals("Aviso")) {%>
Mensaje: </font><font color="#ff0000" size="3"><%= (mensaje != null) ? mensaje : ""%></font>
<% } else {}%>
</div>
</td>
</tr>
</table>
</body>
</html>