File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Servlet loading on application startup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet loading on application startup" Watch "Servlet loading on application startup" New topic

Servlet loading on application startup

sardar waqas ahmed

Joined: Oct 19, 2011
Posts: 16
i am using dynamic web module 3.0 and i created a servlet but there is no servlet mapping created in web.xml .how should i know that my servlet is loaded in web container or not when i start my appliaction
Harsha Smith
Ranch Hand

Joined: Jul 18, 2011
Posts: 287
use any listener??? or override init method and put a log statement???
abani patra
Ranch Hand

Joined: Oct 11, 2011
Posts: 70
I am not clear about your requirement, although I not known about what is dynamic webmodule 3.0 still I want to know do you using any annotation based java.lang.servletalong with its mapping?
What I know you should provide the java.lang.servletmapping in web.xml file.
I agree. Here's the link:
subject: Servlet loading on application startup
It's not a secret anymore!