• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem with running servlets using tomcat3.2.4  RSS feed

 
Kishore Dandu
Ranch Hand
Posts: 1934
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a simple HelloWorld class. I placed it in
c:/installdir/webapps/root/web-inf/servlets directory(as suggested by core servlets book).
When I use http://localhost/servlet/HelloWorld it never opens the page.
Any suggestions.(I also moved this file to c:/installdir/webapps/root and tried to run. It did not work.
My class path does not contain above direcotories. Does it matter.
Kishore.
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to call the directory 'classes' NOT servlets and you need to configure your servlet in web.xml
/Rene
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!