Win a copy of Murach's Python Programming this week in the Jython/Python forum!
    Bookmark Topic Watch Topic
  • New Topic

Invoking a Servlet  RSS feed

 
B Crosthwaite
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi Everyone,

I have Tomcat 6.0.18 installed on my Mac 10.5.5 system. What i am tring to do is simply invoke a servlet.

What i have done to this point is place my class.file in:
~/webapps/ROOT/WEB-INF/classes

and to view the servlet i put in the browser address bar:
http://blockedcontent/servlet/MyServlet

Now, i have been told that this is no longer the way to invoke a servlet and i also need to declare and map my servlet in the web.xml file (deployment descriptor)

Please could someone point me in the correct direction.

Thanks,
-Ben
 
Amit Ghorpade
Bartender
Posts: 2856
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
The answer to your question is general, you need to understand the basic concepts of deployment for this. Here is the link to find out. If you have a book on the subject, just go to the index, look for deployment jump there.

Anyways I found this topic is a version of this topic .

So moving this one. Please paste all your servlets questions in the servlets forum. Read this to know why this is important.

Hope this helps
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65825
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please continue any discussion in your original post on this topic.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!