wood burning stoves 2.0*
The moose likes Servlets and the fly likes mapping libraries in web.xml? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "mapping libraries in web.xml?" Watch "mapping libraries in web.xml?" New topic

mapping libraries in web.xml?

emilio rossi
Ranch Hand

Joined: Jul 01, 2011
Posts: 47

hi everyone,
i build a servlet which is supposed to send mail through javamail, the servlet itself is well mapped in the web.xml file,
but i cant find anywhere in the net about how to tell tomcat which libraries the servlet needs (mail.jar ; activation.jar in my case).
i guess they have to be mapped in the web.xml file but dont know how, any help??
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42596
No. Just put them into the WEB-INF/lib folder of the web app.

Ping & DNS - my free Android networking tools app
emilio rossi
Ranch Hand

Joined: Jul 01, 2011
Posts: 47

the first time one thing is easier than i thought it
I agree. Here's the link: http://aspose.com/file-tools
subject: mapping libraries in web.xml?