Tema: Error 500
Ver Mensaje Individual
  #2 (permalink)  
Antiguo 23/01/2008, 15:25
metalsa
 
Fecha de Ingreso: enero-2008
Mensajes: 3
Antigüedad: 16 años, 3 meses
Puntos: 0
Re: Error 500

Aqui esta lo que falta de la pagina....

} else {
if (a == 0) {
++a;
}
if ((nomina != null)) {
conexion.conector2();
qry = validauser.QueryNom(nomina);
conexion.Query(qry);
if (conexion.getmatriz(0, 0) != null) {
login = "true";
session.setAttribute("login", login);
cont = -1;
cont_silogin = 2;
session.setAttribute("IdP", String.valueOf(conexion.getmatriz(0, 0)));
ID = (String) session.getAttribute("IdP");
usuario.setTipo(ID);
qry = usuario.getQryUser();
conexion.Query(qry);
session.setAttribute("TypeUser", String.valueOf(conexion.getmatriz(0, 0)));
if (ID != null) {
usuario.setDatosPerson(Integer.parseInt(ID));
qry = usuario.getQryUser();
//out.print(qry);
conexion.Query(qry);
res = conexion.getresultados();
int a = conexion.getcolum();
//out.print(a);
session.setAttribute("Nombre", res[0][0]);
session.setAttribute("Proceso", res[0][1]);
session.setAttribute("Uen", res[0][2]);
session.setAttribute("IdUen", res[0][3]);
session.setAttribute("Doc", "0");
session.setAttribute("Fin", "0");
usuario.setEmailPerson(Integer.parseInt(ID));
qry = usuario.getQryUser();
conexion.Query(qry);
session.setAttribute("Email", conexion.getmatriz(0,0));
usuario.setAuditorEmail(Integer.parseInt(ID));
qry = usuario.getQryUser();
conexion.Query(qry);
session.setAttribute("EmailAuditor", conexion.getmatriz(0,0));
usuario.setAuditorPerson(Integer.parseInt(ID));
qry = usuario.getQryUser();
conexion.Query(qry);
session.setAttribute("Auditor", conexion.getmatriz(0,0));
usuario.setAuditorNombre(Integer.parseInt(ID));
qry = usuario.getQryUser();
conexion.Query(qry);
session.setAttribute("AuditorNombre", conexion.getmatriz(0,0));
} else {
session.setAttribute("Nombre", "");
session.setAttribute("Proceso", "");
session.setAttribute("Uen", "");
session.setAttribute("IdUen", "");
session.setAttribute("Doc", "0");
session.setAttribute("Fin", "0");
session.setAttribute("Email", "");
session.setAttribute("EmailAuditor", "");
session.setAttribute("Auditor", "");
session.setAttribute("AuditorNombre", "");
}
conexion.desconectar();
} else {
cont++;
cont_invalido = 2;
}
} else {
cont_faltan = 2;
}
}
}
}
%>
<% if ((login.equals("false")) || (cont_silogin != 2)) {%>
<%@ include file="header.jsp" %>
<html>
<head>
</head>
<body><!-- onLoad="tamaño();" -->
<table align="center" border="0" width="98%">
<tr>
<td rowspan="2" width="25%">
<% for (int t = 0; t < 4; t++) {%>
<table width="100%" border="0" cellpadding="0" cellspacing="0" rules="all">
<tr>
<td background="<%=d%>" height="5%">
<font color="#ffffff" size="2">
<center>
<%
switch (t + 1) {
case 1:
out.print(tLogU);
f = "height='100'";
break;
case 2:
out.print(tLogOp);
f = "height='75'";
break;
case 3:
out.print("<img src='");
out.print(d);
out.print("' height='0'>");
f = "height='70'";
break;
case 4:
out.print("<img src='");
out.print(d);
out.print("' height='0'>");
f = "height='70'";
break;
}
%>
</center>
</font>
</td>
</tr>
<tr>
<td <%out.print(f);%>>
<%
switch (t + 1) {
case 1:%>
<table align="center">
<tr>
<%
if ((cont_invalido == 2) && (user != null) && (pass != null)) {
cont = 0;
%>
<td align="center"><font size="2"><% out.print(tErrorU);%></font></td>
</tr>
<tr>
<% }%>
<td height="80%">
<form method="post" action="" name="Login">
<label><font size="2"><% out.print(tTitUser);%></font></label> <input class="texto" autocomplete="off" type="text" name="user" size="10" /><br>
<label><font size="2"><% out.print(tTitPass);%></font></label> <input class="texto" type="password" name="pass" size="10" />
<p class="submit" align="right"><input type="submit" value="Entrar" align="right"/></p>
</form>
</td>
</tr>
<tr><%
if ((user == null) || (pass == null)) {
%>
<td align="center"><font size="-2"><% out.print(tLogUM); %></font></td>
<%}%>
</tr>
<tr>
</table>
<%break;
case 2:%>
<table align="center">
<tr>
<%
if ((cont_invalido == 2) && (nomina != null)) {
cont = 0;
%>
<td align="center"><font size="2"><% out.print(tErrorE);%></font></td>
</tr>
<tr>
<% }%>
<td height="80%">
<form method="post" action="" name="Login">
<label><font size="2"><% out.print(tTitEmp);%></font></label> <input class="texto" autocomplete="off" type="text" name="nomina" size="10" /><br>
<p class="submit" align="right"><input type="submit" value="Entrar" align="right"/></p>
</form>
</td>
</tr>
</table>
<%break;
case 3:%><table><tr><td><a href="mailto:[email protected]. mx"><img src='<%=w%>' border="0"></a></td><td><%out.print(iAli);%></td></tr></table><%break;
case 4:%><table><tr><td><a href="mailto:enrique.rodriguez.ramirez@correonoval ido.org"><img src='<%=w%>' border="0"></a></td><td><%out.print(iEn);%></td></tr></table><%break;
}
%>
</td>
</tr>
<tr>
<td background="<%=d%>" height="5">
</td>
</tr>
</table>
<br><%}%>
</td>
<td rowspan="2" width="80%" align="right">
<font><%@ include file="widgets/barracolor.jsp" %></font>
<center>
<img src="images/inno.jpg" width="720" height="500">
</center>
</td>
</tr>
<tr>
</tr>
</table>
</body>
</html>
<% }
if ((login.equals("true")) && (cont_silogin == 2)) {%>
<jsp:forward page="principal.jsp" />
<% }%>