I have Eclipse and wondering if I should create a Dynamic Web project and put all the static file contents inside WEB-INF directory? In this case, would I be able to create a WAR locally and deploy it on the Eclipse Tomcat? Would it show up in the Add / Remove options?
Should I create a maven project and then put static contents?
I recommend (as Roland implies) that you create the project as a Maven project. Project building in an IDE should be a convenience, not mandatory. I have scars to prove it.
I never use the Eclipse Dynamic Web project stuff myself. I've never been able to without getting into fights with it. I just do a regular project with a Maven WAR POM file.
As for running Tomcat, there are several ways to do that. The most obvious - and worst way - is to use the WTP plugin that's pre-installed with the JEE spin of Eclipse. I prefer the Eclipse Tomcat plugin myself (formerly know as mongrel, formerly known as sysdeo). I can set up my Tomcat server to see the WAR directory under target directory in my Maven project and run straight from there without having to manually deploy it.
Bjoke: A "Bully Joke". A Statement or action made with malicious intent - unless challenged. At which point it magically transforms into "I was just funnin'" or "What's the matter, can't take a joke?"
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop