Forums Register Login

execute

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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
Do you pee on your compost? Does this tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 757 times.
Similar Threads
Is there any way to call servlet?
Wait Thread ??
Glassfish - Eclipse - Servlets
Reading form parameters
iwant steps execution
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 17:57:40.