This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Servlets and the fly likes Problem in opening my Servlet in the browser... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "Problem in opening my Servlet in the browser..." Watch "Problem in opening my Servlet in the browser..." New topic
Author

Problem in opening my Servlet in the browser...

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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

Joined: Jan 30, 2000
Posts: 3222
    
    5
Try
http://localhost:8080/servlet/HelloWorldServlet


Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Problem in opening my Servlet in the browser...
 
It's not a secret anymore!