[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: (OFF_TOPIC) HELP!!!!



Might be an explanation : the Tomcat server runs as a non-interactive 
process, there is no controlling terminal, consequently no "System.out" 
stream is defined.
Two solutions :
1 - display your information as a html page generated by  servlet or a jsp 
page ;
2 - display your information in a log file, using preferably a logging system 
(log4j for instance is almost straightforward).

On Friday 29 November 2002 20:39, Frederico Jesus da Costa wrote:
> Helo Folks!!!
>
> I am sorry for asking this question here.. but I need helpin this question
> ASAP!!!
>
> I have a Tomcat4 + apache serve runnig with no problems.. but when one on
> the systems was implemented it stops at the following program block...
>
> What amazes me is that in a MS environment with Tomcat4 it works
> normally....
>
>
> Can anyone help me?!?!?!?!? PLZ!!!!
>
> TIA
>
> Fred
>
>    System.out.println("============ ENTRANDO DATA GREGORIANA =========");
>        GregorianCalendar gc = new GregorianCalendar();
>         ccDiaAula = Utils.diaDeHoje();
>            int diaSemana = gc.get(Calendar.DAY_OF_WEEK);
>         System.out.println("============ PEGUEI A DATA GREGORIANA
> =========");
>         //
>        // Display no Controle Catalina
>        //
>        System.out.println("==========================================");
>        System.out.println(gc.get(Calendar.DATE));
>        System.out.println("Dia da Semana: " + diaSemana);
>        System.out.println("==========================================");
>       //
>       // Atençao: o numero devolvido na funcao é de 0 - Domingo a 6 -
> Sabado // Como o banco de dados retorna 1-domingo a 7 - Sabado é preciso //
> acrescentar 1 ao dia da Senama.
>       //
>      int cvDiaValido = DiasAula("" + (diaSemana));
>          cbRetorno = (cvDiaValido == 1);



Reply to: