• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in opening my Servlet in the browser...

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using JSWDK1.0.1, have set the classpath, able to start and stop the server. But having problems in running my servlet.
I have a compiled HelloWorldServlet.class file, if i try to open it up in the browser, i get an error saying file not found.
I have added the following in the browser http://localhost:8080/HelloWorldServlet
but just this http://localhost:8080/ works fine. Where should i put the HelloWorldServlet.class file? Do i need to add anything to the properties file?
Could anyone, please let me know, how to execute(open) my HelloWorldServlet in the browser.
Thanks,

 
Tony Alicea
Desperado
Sheriff
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try
http://localhost:8080/servlet/HelloWorldServlet
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic