Put class Lecturer in a package and import that package the same way you are
importing java.io.*

Ed.

Lalith Jayaweera wrote:

> Hi
>
> Why Should I extend the HttpServlet why Can't I have as follows
>
> class Lecturer{
>
> private String lecID;
> private String lecname;
>
> ..
>
> public void setname(String name_in){
> ...
> }
>
> ....
>
> }
>
> the Lecturer class is saved seperately as lecturer.java
>
> what I need is How can I call it within the servlet
>
> that is how can I use above in the following it gives errors,(I need to
> instantiate objects from the above class inside the following servlet)
>
> import java.io.*;
> import javax.servlet.*;
> import javax.servlet.http.*;
>
> public class admin2 extends HttpServlet{
>
> ....
> ...
> ...
> ....
>
> }

___________________________________________________________________________
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

Reply via email to