Configure IDEA for smooth Tomcat integration without using ANT

I've followed the "How-to Setup Web Application Support in IntelliJ"
(Does the author really means "IntelliJ", not "IDEA"?). So far so good.

My project has following structure:


+ (contains diverse libraries required by different sub-projects)
+ (contains different source paths for different sub-projects)
+
+
+
+ (contains servlets and other java source code)
+ (contains real-page-jsps)
+ (contains jsps used to include in the "pages")
+
web.xml
index.jsp (redirects to pages/index.jsp)

How to configure IDEA ('s outputpath) to generate something like this

+
(contains all compiled classes from all sub-projects)
web.xml
+
+
index.jsp

Or did you find another structure, that can be handled better by IDEA?

Tom

2 comments
Comment actions Permalink

Specifying your WEB-INF/classes directory as your output path should work.

If you run tomcat from within IDEA then you don't need to put the compiled classes in WEB-INF/classes. You can put them wherever you want and check the "Include project classpath" option in the run configuration.

My typical project setup for web applications:


+ (contains compiled classes)
+ (contains tomcat configuration)
+ (contains additional libraries)
+ (contains sources)
+ (web application home, contains JSPs)
+
+ (contains JSTL libraries)
+ (contains tag library descriptors)

0
Comment actions Permalink

You publically admit to using JSTL libraries? ;)

0

Please sign in to leave a comment.