roast_soul
roast_soul

Reputation: 3650

I don't want to use @WebServlet in my servlet in Eclipse

I'm using Eclipse Version: Juno Service Release 1. When I create servlet, yes, there's a web.xml file. But it will not mapping servlet url automaticlly. Also with the InitParam.

I know that's because of the @WebServlet annotation.

Can I do something to make the Eclipse map the url in web.xml file, not using the @WebServlet annotation?

Upvotes: 0

Views: 453

Answers (1)

BalusC
BalusC

Reputation: 1108842

Drop the Dynamic Web Module version back to 2.5 in Project Facets section of project's properties.

Upvotes: 2

Related Questions