[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.webtools] Re: Significance? org.eclipse.wtp

Nagrik wrote:
Hello Group,

After building my first web application I was wondering about two things.

1. The classes directory is not created inside WEB-INF, instead it is created under a different directory named "build." I thought according to spec, the java/servlet classes are supposed to reside under WEB-INF.

As a matter of principle, Eclipse tries to keep built artifacts, like class files, separate from source files. The WEB-INF folder under the WebContent folder is part of the project's source tree for resources, so compiled classes directed elsewhere as you have noted. Assembly into the "war structure" occurs when the project is published to a server for testing and when you export your project as a war file.


2. What is the significance of org.eclipse.wtp package and the directory structure. Can I do without it and create my java/servlet class without this package?

You can use whatever package you want for your servlets. I don't see "org.eclipse.wtp" occurring in my projects, so I'm not clear on what this refers to.


Cheers,
Larry


Any explanation please?

thanks.

nagrik