aspose file tools*
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 Java 8 in Action this week 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
 
Similar Threads
Glassfish - Eclipse - Servlets
Reading form parameters
Is there any way to call servlet?
Wait Thread ??
iwant steps execution