Two Laptop Bag
The moose likes Servlets and the fly likes Invoking a Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic
Author

Invoking a Servlet

B Crosthwaite
Ranch Hand

Joined: Oct 22, 2008
Posts: 39
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

Joined: Jun 06, 2007
Posts: 2551
    
    2

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


SCJP, SCWCD.
|Asking Good Questions|
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56185
    
  13

Please continue any discussion in your original post on this topic.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Invoking a Servlet
 
Similar Threads
add my own context
Reading parameters in Servlet passed from Client
cannot invoke servlet in Tomcat
welcome file for virtual/logical path
Session Tracking across doPost() & doGet()