Page 1 of 1

About Question enthuware.jwpv6.2.609 :

Posted: Fri Feb 17, 2012 11:58 am
by Cengiz C.

Code: Select all

    public WFTestServlet1(){
        System.out.println("WFTestServlet1 instance created "+(++count));
    }
The declartion of

Code: Select all

int count;
is nowhere to be found.

This is distracting, one thinks that that method will fail because of compile error.

Re: About Question enthuware.jwpv6.2.609 :

Posted: Fri Feb 17, 2012 12:29 pm
by admin
You are right. int count should be declared in the code. Will be fixed asap.

thank you for your feedback!

BTW, the "It will not compile because @PostConstruct is not applicable in a servlet." is still not the right option.