Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Basic Servlet Question

 
Madhu SK
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using Tomcat standalone. I created a servlet called HelloClientServlet. In the Tomcat\WebApps directory, I created the following directory structure and put the class file in it.
\MyServlets\Web-inf\classes\HelloWorldServlet.class.
How should I run this servlet? Are there any other files that I need to create?
I am able to run all the examples that come with Tomcat & Sun's tutorial without any problem. But I am not able to run my servlets.
Thank You,
Madhu SK
 
ernest fakudze
Ranch Hand
Posts: 216
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there!
Since you are new to this thing here is something to try out:
a) Put your servlet class in ...webapps\ROOT\WEB-INF\classes
b) Luanch it using http://localhost:8080/servlet/HelloWorldServlet
This should invoke the servlet and you will see some text on the browser so long as your servlet can write out data onto the screen. Then after that you can experiment with virtual contexts.
Good luck
 
Madhu SK
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks..it is working now
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic