|
Re: exception in thread main
Hi Sushma,
For simple servlet program you need the following
1) first u need Apache Tomcat server (i recommend)
2) update ur CLASSPATH variable with the path of servlet-api.jar
(better to keep servlet-api.jar in WEB-INF/lib folder of ur application)
3) every web application has a specfic directory structure to be followed , i hope u know the directory structure to be followed.
4)after writng the servlet code ,compile the file to get .class file which needs to be kept in classes directory (WEB-INF/classes )of ur application.
5)for running the application you need to hav your appication in webapps folder of tomcat(or you can have the war file of ur application)
6)from tomcat console you can run the application.
this is very abstract view of the whole process , i hope senior members of the community will give you a more detailed and easier approach for your problem.
if you are confused you can always post it.
|