Dims
Dims

Reputation: 51039

Eclipse does not put servlet mappings into web.xml

I have added new servlet to eclipse project with it's wizard and wizard also asked for servlet mapping. Now I can see this mapping in project explorer tree under Deployment descriptor - Servlet mappings, but web.xml does not contain this mapping.

Is this an eclipse bug or mappings are stored somewhere else nowadays?

Mappings do work.

Eclipse is Indigo. Tomcat is 7.0

Upvotes: 1

Views: 753

Answers (1)

Dims
Dims

Reputation: 51039

Mappings are set with @WebServlet annotation now.

Upvotes: 1

Related Questions