• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem in opening my Servlet in the browser...

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,

 
Desperado
Posts: 3226
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try
http://localhost:8080/servlet/HelloWorldServlet
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic