This week's book giveaways are in the iOS and Features new in Java 8 forums.
We're giving away four copies each of Barcodes with iOS: Bringing together the digital and physical worlds and Core Java for the Impatient and have the authors on-line!
See this thread and this one for details.
The moose likes Servlets and the fly likes execute Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 forum!

JavaRanch » Java Forums » Java » Servlets
Bookmark "execute" Watch "execute" New topic
Author

execute

gaurav chhabra
Ranch Hand

Joined: Jul 24, 2004
Posts: 109
hello
i have installed with TOMCAT and also running it.
i have compiled up with the servlet and know please tell me that how to execute a servlet,what path we have to set.

thank you
Ravish Ahuja
Greenhorn

Joined: Nov 29, 2004
Posts: 13
Every servlet is specified in web.xml file. Like

<servlet>
<servlet-name>Anyservlet</servlet-name>
<servlet-class>com.yourpackage.AnyServlet</servlet-class>
</servlet>

You have to put your web application in the webapps folder of the TOMCAT. suppose you make a floder MySite in the webapps folder of the TOMCAT. now for calling a servlet you must give address as
http://localhost:8080/MySite/Anyservlet
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: execute