Hi Isa,

The page is quite simple:

<%@ page info="This JSP servlet tests the use of the jspInit() method" %>

<%! public void jspInit()
{
    super.jspInit();
    System.out.println("Executing jspInit()...");
}
%>

<% System.out.println("Processing request..."); %>

Repeat requests give the following output:

    Executing jspInit()...
    Processing request...
    Executing jspInit()...
    Processing request...
    Executing jspInit()...
    Processing request...
    :

instead of:

    Executing jspInit()...
    Processing request...
    Processing request...
    Processing request...
    :

Regards,

   Gil

>
> Can you send me your JSP page that shows this problem ?
>
> regards,
> -isa
>
> ]Date: Tue, 8 Feb 2000 07:05:58 -0800
> ]From: Gil Murray <[EMAIL PROTECTED]>
> ]Subject: jspInit() and JWS 2
> ]To: [EMAIL PROTECTED]
> ]
> ]Hi,
> ]
> ]I have a problem with JWS 2.0, since it does not follow the JSP
specification
> with regard to jspInit.
> ]
> ]It calls jspInit() when every request arrives, instead of one time only
when
> the compiled servlet is first initialized.
> ]
> ]Does anyone know how I can get round this?
> ]
> ]I notice that the problem is with JSP only - simple servlets work fine
with the
> init() method.
> ]
> ]Thanks,
> ]
> ]   Gil
> ]
> ]=========================================================================
==
> ]To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> ]FAQs on JSP can be found at:
> ] http://java.sun.com/products/jsp/faq.html
> ] http://www.esperanto.org.nz/jsp/jspfaq.html
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to