|Re: Significance? org.eclipse.wtp [message #213456 is a reply to message #213425]
||Thu, 08 May 2008 13:31
| Larry Isaacs
Registered: July 2009
> 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.
> Any explanation please?
Powered by FUDForum
. Page generated in 0.12004 seconds