Servlet with Tomcat


I am a beginner using IntelliJ IDEA for Servlet development and I have a question.
Do I need to manually add a reference to the servlet libs at Tomcat folder? I tought IntelliJ IDEA would do that for me.



1 comment
Comment actions Permalink

If mark 'Application Server' option in 'Frameworks and technologies' page of the New Project Wizard during creation of the project IDEA should add
reference to servlet-api library automatically. Otherwise you can add the reference to the library in File | 'Project Structure' dialog: select your
module, switch to 'Dependencies' tab, click on '+' button, choose 'Library' item and select the appropriate library in 'Application Server Libraries'

Nikolay Chashnikov
Software Developer
"Develop with pleasure!"


Please sign in to leave a comment.