Also, you said: "So what do I have to change?" in a previous email.
Honestly, at this point you need to re-evaluate your JAVA, and not worry
about your JSP. You need to re-read the tutorial, or at least figure out
that the tutorial teaches Java for a reason.
You need to change the interface to an interface - if that's what you want -
or to an actual abstract class - if that's what you want. I can't make your
design decisions for you; neither can anyone else. It sounds like you want
an abstract class. Go write one.
>From: drew w <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
> reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: simple interface error
>Date: Fri, 4 May 2001 21:10:20 -0000
>
>I would call this method to print out an error that would be assigned to a
>session when something is wrong.
>
>
>thanks,
>andrew
>
>
>>From: Joseph Ottinger <[EMAIL PROTECTED]>
>>Reply-To: A mailing list about Java Server Pages specification and
>> reference <[EMAIL PROTECTED]>
>>To: [EMAIL PROTECTED]
>>Subject: Re: simple interface error
>>Date: Fri, 4 May 2001 15:26:28 -0500
>>
>>In Java, interfaces have *only* method signatures. What you're trying to
>>do
>>looks like an abstract class, although an abstract class of this type has
>>limited usefulness.
>>
>>What you probably REALLY want to do (note the "probably" -- what you
>>REALLY
>>want to do is REALLY up to you and you only, REALLY) is define a parent
>>class, containing a set of common methods, marked as abstract. Then all
>>classes that need those methods would extend that class, and you'd have
>>your
>>printError() method automatically.
>>
>>Incidentally, printError() is probably done a lot better by libraries such
>>as log4j ( http://jakarta.apache.org/log4j/ ) and other similar creations.
>>
>>I'm still trying to find the relevance to JSP in your post, and I imagine
>>I'll fail now, tomorrow, and the day aft... oh, heck, I'll just go ahead
>>and
>>give up with that now.
>>
>>
>>>From: drew w <[EMAIL PROTECTED]>
>>>Reply-To: A mailing list about Java Server Pages specification and
>>> reference <[EMAIL PROTECTED]>
>>>To: [EMAIL PROTECTED]
>>>Subject: simple interface error
>>>Date: Fri, 4 May 2001 20:02:40 -0000
>>>
>>>I am creating a simple interface called common:
>>>public interface Common{
>>>public String printError(String msg){
>>>String errmsg;
>>>errmsg = ("Sorry "+getName()+",
>>>"+msg);
>>>}
>>>}
>>>when I compile I get this message:
>>>Abstract and native methods cannot have a body: String printError(String
>>>msg)
>>>public String printError(String msg)
>>>^
>>>_________________________________________________________________
>>>Get your FREE download of MSN Explorer at http://explorer.msn.com
>>>
>>>===========================================================================
>>>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>>>JSP-INTEREST".
>>>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
>>>DIGEST".
>>>Some relevant FAQs on JSP/Servlets can be found at:
>>>
>>>http://java.sun.com/products/jsp/faq.html
>>>http://www.esperanto.org.nz/jsp/jspfaq.html
>>>http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>>>http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>>
>>_________________________________________________________________
>>Get your FREE download of MSN Explorer at http://explorer.msn.com
>>
>>===========================================================================
>>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>>JSP-INTEREST".
>>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
>>DIGEST".
>>Some relevant FAQs on JSP/Servlets can be found at:
>>
>>http://java.sun.com/products/jsp/faq.html
>>http://www.esperanto.org.nz/jsp/jspfaq.html
>>http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>>http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>_________________________________________________________________
>Get your FREE download of MSN Explorer at http://explorer.msn.com
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
>DIGEST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
>http://java.sun.com/products/jsp/faq.html
>http://www.esperanto.org.nz/jsp/jspfaq.html
>http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets