Sorry for beginner's questions but I wonder how can I set the root servlet in Tomcat 6? For example I want to access my servlet on
localhost:8080
, not on
localhost:8080/myservlet
Thanks!
Simply put, web applications are placed under $CATALINA_HOME\webapps, where $CATALINA_HOME is the Tomcat's installation directory.
The default servlet is the servlet which serves static resources as well as serves the directory listings (if directory listings are enabled).
This annotation is used within the ServletSecurity annotation to represent security constraints on specific HTTP protocol messages. Annotation that may be specified on a Servlet class, indicating that instances of the Servlet expect requests that conform to the multipart/form-data MIME type.
deploy an web app with context root /
and set servlet-mapping in web.xml as
<servlet-mapping>
..
<url-pattern>/</url-pattern>
</servlet-mapping>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With