English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

can't run my servlet and html that links them. when i run the servlet i get javax.servlet does not exist. if i try to run my html code that links the server, tomcat produces an error (servlet not found)

2006-10-27 02:20:30 · 1 answers · asked by Anonymous in Computers & Internet Programming & Design

1 answers

Tomcat is a servlet engine, so you'll not need a servlet runner. The javax.servlet package is automatically installed if you are running Java 2 or above.

If you are getting the error message servlet not found - with the name of the servlet you are calling, then either the servlet class is not in your web application (.war file), or you haven't got the path to the class correctly, or your servlet isn't configured correctly in your web.xml file.

The web.xml file is used to create an alias URL for your servlet, so that you can refer to a servlet in a package by a short name. If you are not using web.xml to define an alias to your servlet, then you need to have the complete package name to your servlet class in the URL.

2006-10-27 03:37:48 · answer #1 · answered by Isofarro 3 · 0 0

fedest.com, questions and answers