public static void generateJavaScriptLogSessionExpiredRelation(Writer writer,String idioma,Long numIdioma,String message,int enabled) throws IOException {
  writer.write("<script language=\"javascript\">alert( \"" + message + "\" );");
  if (enabled == 1) {
    writer.write("if (window.dialogArguments[8].opener){window.dialogArguments[8].opener.location.href=\"./__index.jsp?Idioma=" + idioma + "&numIdioma="+ numIdioma+ "\";window.top.close();}");
    writer.write("else {window.close();}");
  }
 else {
    writer.write("window.open(\"./__index.jsp?Idioma=" + idioma + "&numIdioma="+ numIdioma+ "\" , \"_top\",\"location=no\",true);");
  }
  writer.write("</script>");
}

public static void generateJavaScriptLogSessionExpiredRelation ( Writer writer , String idioma , Long numIdioma , String message , int enabled ) throws IOException { writer . write ( "<script language=\"javascript\">alert( \"" + message + "\" );" ) ; if ( enabled == 1 ) { writer . write ( "if (window.dialogArguments[8].opener){window.dialogArguments[8].opener.location.href=\"./__index.jsp?Idioma=" + idioma + "&numIdioma=" + numIdioma + "\";window.top.close();}" ) ; writer . write ( "else {window.close();}" ) ; } else { writer . write ( "window.open(\"./__index.jsp?Idioma=" + idioma + "&numIdioma=" + numIdioma + "\" , \"_top\",\"location=no\",true);" ) ; } writer . write ( "</script>" ) ; }
metodo que se ejecuta cuando la sesion del usuario a expirado al intentar acceder a la pantalla de relaciones .
