It seems to me that if I failed to provide the appropriate no arg
constructor (considering fat fingers, typos, and general forms of
brain fade) the compiler complained. I'm wondering if its because I
don't use an IDE but rather command line compile.
Any thoughts?
BTW - Nic almost always gives full and complete answers -I highly
recommend reading the archives; chock full of good stuff.
----- Original Message -----
From: Nic Ferrier <[EMAIL PROTECTED]>
Date: Saturday, April 21, 2001 6:17 pm
Subject: Re: [Re: Servlets constructors] for NIC
> >>> balwinder singh <[EMAIL PROTECTED]> 22-Apr-01 1:42:12 AM >>>
>
> >I am new to this group but I am enjoying this
> >group like anything.
>
> Good. I hope you stay and become an expert.
>
>
> >A BIG * THANX * for your BRILLIANT answer.
>
> Thank you... it's always nice to have feedback.
>
>
> >But I doubt where u say:
>
> "Of course, his code won't compile anyway, because
> he hasn't supplied a no-arg constructor. If he gets it to
> compile (by calling super() in his cons) then it won't load
> in the servlet engine because there is no no-arg constructor"
>
> >But The code compiles actually ,but when we open it
> >in Browser it throws Exceptions.
>
> That's most odd... I have just tried it with javac and with jikes and
> neither report an error...
>
> It must be my mistake and I apologise. I thought that the language
> spec ensured that constructors matched super class constructors. But
> since neither compiler reports an error perhaps it doesn't... I will
> check at some point.
>
>
> The code fails with an exception because the servlet engine cannot
> load it (because there isn't a no-arg cons).
>
>
> Nic
>
>
________________________________________________________________________
___
> To unsubscribe, send email to [EMAIL PROTECTED] and include in
> the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http:
> Resources: http://java.sun.com/products/servlet/external-
> resources.htmlLISTSERV Help:
> http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html