description The server encountered an internal error () that prevented it from fulfilling this request.
javax.servlet.ServletException: Class eg1.eg1 is not a Servlet org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) java.lang.Thread.run(Thread.java:536)
Hi, first thing i would like to inform you about java is Object Oriented Language there are some standards in java like where all name of Classes are started from Capital letter, in your code you have created class for Servlet, you gave the name of the class with small letter so plz make it correct first and second most important thing about Servlet is to follow the Life Cycle of Servlets. plz go throw this links.. you would find lacking
If you are going to post more than a line or two of your code, wrap that code in a set of UBB Code tags. Doing so will help to preserve your code's indenting, making it easier to read. If it is easier to read, more people will actaully read it and you will stand a better chance of getting help with your question.