• Post Reply 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

execute

 
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
reply
    Bookmark Topic Watch Topic
  • New Topic