on 05-28-2005 1:00 PM
Please let me know how to execute a servlet on jakarta-tomcat-4.0.3 .I am able to compile it .
Regards,
Saurabh Singhal
Hi,
Here is URL where there are step by step procedures to excute servelets.
http://www.theserverside.com/books/addisonwesley/ServletsJSP/index.tss
hope this free online book helps you a lot
Regards,
RK
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
You must provide a mapping in your web.xml configuration file. This mapping will allow you to access servlet via url in form: "http://[domain]:[port]/[context]/servlet/[servlet full qualified name]"
This file should be located at $TOMCAT_HOME/conf.
Sample web.xml contains:
<web-app>
<display-name>Sample Database App</display-name>
<description>
This is a simple application.
</description>
<servlet>
<servlet-name>MyServlet</servlet-name>
<servlet-class>MyServletImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>MyServlet</servlet-name>
<url-pattern>/myservletaddr</url-pattern>
</servlet-mapping>
</web-app>
You can find more info at:
or
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
79 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.