tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Salgueiro>
Subject [Resend] Using a Java Bean inside a declaration
Date Mon, 08 May 2000 17:06:31 GMT
Hi everyone,

 In the JSP 1.1 spec it says that if you implement the jspDestory()
method it should be called when the page is destroyed, if I'm not
mistaken (it is one of the API contracts). Can I use a declaration
to override it and close connections cleanly?
  I tried the following (which BTW may be very stupid but here it

  <jsp:useBean id="bdcon" class="bd.BDBean" scope="session">
  <%! public void jspDestroy() {

  Jasper complains loudly when it tries to compile the page
because he does not know what the object bdcon is.

  Can someone help me with this scope error?


Bruno Salgueiro       (
SIBS - Sociedade Interbancária de Serviços
Rua Soeiro Pereira Gomes, Lote 1, 1600 Lisboa, Portugal

Tel: + 351 21 791 88 33
Fax: + 351 21 794 24 40

Esta mensagem foi assinada com certificado MULTIcert.
Para obter o certificado da Autoridade de Certificação
PILOTO MULTIcert dirija-se ao site

"Computers are useless. They can only give you answers."
                                        --Pablo Picasso

View raw message