Tomcat and Ant problems
Posted on 2003-03-13
Must say that i am very beginner to java and i have to write web app. using tomcat, servlets as business logic, applets as front-end and Ant like make in C. I know some tomcat, have few servlets working in my web app. and applets are not the problem.
Problem is that i dont know how to make directory structure on tomcat. I have something like this:
-client (applets and dialog forms)
-common (classes that i use for serialisation and communication between servlets and applets)
-server (servlets + jdbc access)
Now i have heard that in the web dir i should have only files that go to client like gif, html, applet classes etc.
And i need to have WEB-INF/classes dir inside this 'web' dir. But when i use Ant for build, directory structure on the 'web' and 'src' dir dont match and Ant is recompilling all files - because i need to have client classes in web/ and server in web/WEB-INF/classes. What should i do?