my dog learned polymorphism
The moose likes Servlets and the fly likes Executing Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Executing Servlet" Watch "Executing Servlet" New topic

Executing Servlet

Nischal Tanna
Ranch Hand

Joined: Aug 19, 2003
Posts: 182
I have kept my servlet class file in the location as..
Now..How can i execute the servlet file from the browser..
is it..
Is any mapping required to be done in th web.xml file..?

Malhar Barai
Ranch Hand

Joined: Aug 17, 2001
Posts: 399
What is the context name, the folder where WEB-INF is located...??
You indeed have to make entries in web.xml to run it...
Engin Okucu
Ranch Hand

Joined: Feb 09, 2002
Posts: 174
hi Nischal ,
Write : http://localhost:8080/ContextName/servlet/servlet1
'ContextName' is the name of you directory in the webapps directory .
Nischal Tanna
Ranch Hand

Joined: Aug 19, 2003
Posts: 182
Hi i got my answer...
I changed the web.xml settings...I created a name for my servlet and mapped the servlet with a url pattern..
neways thanx for ur replies...
I agree. Here's the link:
subject: Executing Servlet
jQuery in Action, 3rd edition