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

Invoking a Servlet

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Please continue any discussion in your original post on this topic.
 
    Bookmark Topic Watch Topic
  • New Topic